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

Martin Peach martin.peach at sympatico.ca
Sun Dec 11 18:38:05 CET 2011


On 2011-12-11 12:14, Ivica Ico Bukvic wrote:
>
>> They contain templates for arrays.
>>
>> [; pd-_float vis 1; pd-_float_array vis 1 (
>>
>>> More interestingly, it does not do canvas_free for
>>> those two instances when closing pd, suggesting this is a memory leak.
>>> So, what gives? Why does it create 2 invisible canvases, what is their
>>> function, and how do they differentiate from the regular canvases.
>>
>> They aren't listed in the "Window" menu.  But like any other canvas, you
>> can send them objects and messages:
>>
>> [; pd-_float obj 20 20 keyname, obj 20 80 print all_your_keys_are_belongs_to_us, connect 1 1 2 0 (
>
> OK, so that explains why they are created. However, this does not answer
> the question why they are not being destroyed when exiting pd. Neither
> canvas_free nor glist_free are triggered when quitting pd, so this must
> be a memory leak, no?
>

The OS releases all the memory allocated by the process when it 
terminates, so no.

Martin



More information about the Pd-list mailing list