[PD] pd at startup creates 2 canvases, why?

IOhannes zmölnig 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. 

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20111211/8ea96374/attachment-0001.pgp>


More information about the Pd-list mailing list