Strange 'memset' error when using std.range.repeat and std.array.array

via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jan 4 09:32:02 PST 2016


On Monday, 4 January 2016 at 14:25:30 UTC, Marc Schütz wrote:
> On Monday, 4 January 2016 at 12:20:09 UTC, Ur at nuz wrote:
>> On Monday, 4 January 2016 at 12:00:32 UTC, tcak wrote:
>>> [...]
>>
>> Yes. It's Ubuntu 14. It works when it's in the separate 
>> example, but not working inside my project. The strange thing 
>> is that it working in another place inside the same 
>> application. So I don't know what to think about it. Maybe 
>> this problem occurs only when some amount of memori is being 
>> allocated or something..
>
> What is the value of `newIndentCount` when this happens? Could 
> it be it is too big, or negative?
>
> If not, you could try reducing your program using dustmite:
> https://github.com/CyberShadow/DustMite/wiki/Detecting-a-specific-segfault

The issue was trivial. I decreased variable with 0 value and got 
OutOfMemory error.


More information about the Digitalmars-d-learn mailing list