On 12/11/2011 08:27 PM, Ivica Ico Bukvic wrote:
The OS releases all the memory allocated by the process when it terminates, so no.
OK, however, in pd-l2ork I am currently building infinite undo which will be a doubly-linked list linked to a canvas. So, if I am going to instantiate it dynamically, once the program exits are all these dynamic things taken care of? I think not.
it does. if it does not, file a bug report at your operating system.
Otherwise, why would we need destructors in the first place if the os takes care of it all (other
because destructors are not only called at the end of the application life.
afaik, the only problem is, if your application locks some "shared" system ressource, and cannot free it again (e.g. it writes a lockfile to the filesystem, but cannot delete it if the dtor is not called on exit)
fgamsdr IOhannes