On Monday, 26 February 2018 at 18:01:07 UTC, Marc wrote:
I've tried both gdb and windbg debugger both it either get a
"received signal ?" from gdb or crash the GUI application
(windbg).
The error is:
core.exception.OutOfMemoryError@src\core\exception.d(696):
Memory allocation failed
How do I find out the source of the error?
I'm allocation a class and returning it in a yield. Can it be
related?
Something like this:
Generator!Field fromCSVFile(in string csvFilename) {
return new Generator!Field({
string line;
while((line = csvFile.readln()) !is null) {
Field field = deserializeLine(line);
yield(field);
writeln("----------------------------------------");
}
});
}