Olivier Ravard wrote:
Hi,
I have a memory problem : when an event have references for a given
set of an object methods, then this object is never deleted.
It seems that :
- events are not deleted when menus are deleted
You are not binding the events to the menu, but to the frame. Typical usage with popup menus is to bind the events only once and then reuse the same IDs when building the menu again. If that doesn't work for your app then you can manually disconnect or unbind the event handlers. Also, you should explicitly Destroy() menus that are not attached to a menubar when you are done with them.
- or events creates circular references when it is related to an object method.
Yes, they do, but the cycles should be broken when the C++ object is destroyed.
ยทยทยท
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!