String Appender Fails (Memory Allocation Failure)

David Nadlinger see at klickverbot.at
Wed Jul 13 16:17:13 PDT 2011


On 7/14/11 1:11 AM, Loopback wrote:
> Now the program calls Runtime.terminate, which is supposed to take
> care of the memory garbage and etc. This does not work. The terminate
> function call throws an Error, "Memory Allocation Failure".
> This failure originates in the 'Foo' destructor, which in turn creates
> a appender object of type string. My question is; how come this throws
> an error?

Currently, no memory can be allocated at all during garbage collection 
runs, which is where destructors are usually called.

David


More information about the Digitalmars-d-learn mailing list