How do I trace that memory error?

Marc jckj33 at gmail.com
Mon Feb 26 20:05:27 UTC 2018


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 at 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("----------------------------------------");
>		}
>	});
> }


More information about the Digitalmars-d-learn mailing list