[PD] pd at startup creates 2 canvases, why?
zmoelnig at iem.at
Sun Dec 11 20:34:58 CET 2011
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.
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)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 262 bytes
Desc: OpenPGP digital signature
More information about the Pd-list