In the code above, the frame is still in wx.GetTopLevelWindows as an active window after Destroy is called. Why? Doesn’t this constitute a leak? How do I eject it from the top level windows (or force process the Destroy call)?
Since you are listing the top level windows from within the frames own
destroy method the code hasn't finished so of course the frame must
still exist at that point or there would be an error trying to execute
no longer present code.
In addition, Destroy and delete mark items as READY for garbage
collection, items can still be present until the garbage collector runs.
···
On 13/09/2016 01:31, Rishi Sharma wrote:
Hi all,
I'm wondering why a frame still persists after Destroy is called on OS X.
In the code above, the frame is still in wx.GetTopLevelWindows as an
active window after Destroy is called. Why? Doesn't this constitute a
leak? How do I eject it from the top level windows (or force process
the Destroy call)?
--
Steve (Gadget) Barnes
Any opinions in this message are my personal opinions and do not reflect
those of my employer.
In the code above, the frame is still in wx.GetTopLevelWindows as an
active window after Destroy is called. Why? Doesn't this constitute a
leak? How do I eject it from the top level windows (or force process
the Destroy call)?
Rishi,
Since you are listing the top level windows from within the frames own
destroy method the code hasn't finished so of course the frame must
still exist at that point or there would be an error trying to execute
no longer present code.
In addition, Destroy and delete mark items as READY for garbage
collection, items can still be present until the garbage collector runs.
--
Steve (Gadget) Barnes
Any opinions in this message are my personal opinions and do not reflect
those of my employer.
--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.