Re: Wx::Perl seems to be leaking memory

2015-05-21 Thread Steve Cookson
Thanks for this. Actually, my timers run all the time in the background. On 21/05/15 10:54, Mark Dootson wrote: Just one other thing that may not be obvious unless you have read wxWidgets docs for wxTimer, Wx::Timer objects must be explicitly destroyed. e.g. $timer->Destroy; However, in th

Re: Wx::Perl seems to be leaking memory

2015-05-21 Thread Steve Cookson
Mark, On 21/05/15 10:50, Mark Dootson wrote: Every Wx::Timer event or call to an overridden 'Notify' method leaks 1 SV. I don't have a solution but will work on it over the weekend. Amazing, I just came to the same conclusion, but I have no idea what to do from here. I'll have a look too, bu

Re: Wx::Perl seems to be leaking memory

2015-05-21 Thread Mark Dootson
Just one other thing that may not be obvious unless you have read wxWidgets docs for wxTimer, Wx::Timer objects must be explicitly destroyed. e.g. $timer->Destroy; However, in the case of Wx::Timer the ->Destroy call deletes the wxWidgets object immediatley. No point in you testing this out

Re: Wx::Perl seems to be leaking memory

2015-05-21 Thread Mark Dootson
Hi Steve, $app->Yield does not cause 'idle time' to happen - so 'Destroyed' objects are not cleaned up during that call. As you have seen, on multiple calls the total number of SVs does not increase so no memeroy leak there. However, in constructing an example to demonstrate this I think I m

Re: Wx::Perl seems to be leaking memory

2015-05-21 Thread Steve Cookson
Hmm.., On 20/05/15 17:49, Steve Cookson - gmail wrote: If I create a few controls in a dialog, delete the dialog, use $app->Yield for the background processing to take place, I still end up with more Perl objects after the deletion than before. Well actually, although the count builds up for

Re: Combo and ClientData (was: RE: Help with Wx::Perl::PubSub)

2015-05-21 Thread Steve Cookson - gmail
Hi François, On 21/05/15 04:31, RAPPAZ Francois wrote: Steve, Thanks for the example and the urls. I'm on W7 and I didn't want to install Python + wxPython, so I'm using wxFormBuilder to produce xrc files that I load with perl. The problem with xrc files is that they are not perl, so you learn

Combo and ClientData (was: RE: Help with Wx::Perl::PubSub)

2015-05-21 Thread RAPPAZ Francois
Hi there, Steve, Thanks for the example and the urls. I'm on W7 and I didn't want to install Python + wxPython, so I'm using wxFormBuilder to produce xrc files that I load with perl. Using an array (or an hash with id/position in the combo) that shadows the combox content works, but I would li