On 2012-12-30 17:04, Ali Çehreli wrote: >>> Application error: >>> core.exception.InvalidMemoryOperationError
The basic rule is don't call or do anything which can allocate memory in a destructor. printf doesn't allocate, and if you don't do anything that allocates you should be ok. Maybe the compiler should warn or error on attempts to allocate memory (implicitly or explicitly) in a dtor. Not sure..