Joshua Niehus Wrote: > That works, but I misrepresented the problem and found that the following > may be the issue (this looks more like the code im using): > > import std.conv, std.stdio; > > void main() > { > string[] strArr; > foreach(int i; 0 .. 257) { > strArr ~= text("Line: " ~ to!string(i)); > } > > foreach(string e; strArr) { > writeln(e); > } > }
Looks like the described problem. 256 strings on 32-bit architecture is an array 2kb long. Move strArr to global scope and see if the code works. If the stack is not scanned by GC, that's bad.