in reply to Re^11: Detecting memory leaks.
in thread Detecting memory leaks.
Hi Anon,
I posted on the Wx::Perl Mailing list and got this reply:
See http://docs.wxwidgets.org/3.0/classwx_window.html#a6bf0c5be864544d9ce0560087667b7fc details for wxWindow::Destroy.
As you have determined, top level windows you create need to be destroyed with $win->Destroy;
The C++ structure for a Wx::Frame contains a reference to the associated Perl SV. So that SV won't go away until the C++ structure is deleted - which will never happen until your event loop is running.
Regards
Steve
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^13: Detecting memory leaks.
by Anonymous Monk on May 13, 2015 at 07:19 UTC | |
|
Re^13: Detecting memory leaks. ( Wx::wxTheApp()->ProcessIdle; )
by Anonymous Monk on May 13, 2015 at 07:54 UTC | |
by Steve_BZ (Chaplain) on May 14, 2015 at 19:57 UTC | |
by Anonymous Monk on May 14, 2015 at 23:23 UTC |