dmd crashes with "out of memory" error

grauzone none at example.net
Wed Jul 15 05:46:41 PDT 2009


Trass3r wrote:
> Robert Fraser schrieb:
>> File is probably too big. Remember that for every byte in your binary, 
>> DMD is likely allocating several hundred for the literal xpression 
>> object + codegen for the expression, etc., and frees very little 
>> dynamically allocated memory.
>>
> 
> So we can't even embed a 1.7 MB file?

For embedding data, use import() 
(http://www.digitalmars.com/d/1.0/expression.html#ImportExpression).
Or did you do this? I don't know the file size restrictions of import 
either.


More information about the Digitalmars-d-learn mailing list