Hi Mark,

How are you getting on? I imagine it was not as straight-forward as you hoped. Here are some random thoughts.

I am still trying to sort out memory leaks. Almost everything that you can imagine seems to be leaking. I even thought that dbi:: was leaking however it turned out just to be caching. But over a few cycles caching is virtually indistinguishable from leaking and my code (especially my video) is crashing regularly from non-perl reasons.

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.

1) At the moment, I am just reducing the frequency of wxTimer, to reduce the adverse affect of memory leaks. However, I may try to use $SIG{ALRM}processing to imitate wxTimer.

2) wxTimer is not the only event to leak.  I have just discovered that

Wx::Event::EVT_MEDIA_LOADED( $i_frame, $i_frame->{Ctl_Videos_Media}, \&on_media_loaded );

leaks too.

3) Maybe that Wx::Perl::PubSub module method that François was talking about may help.

What are your thoughts?

Regards

Steve.

Reply via email to