On Dec 6, 2012 7:03 AM, "Eero Pajarre" <epaja...@gmail.com> wrote:
>
> My wxLua program seems to be leaking resources, and the leak seems to
> be caused by popup menus. I have very context sensitive menus which I
> pop up, so I am creating a new menu on every click of right button of
> the mouse.
>
> Google search found some hints for wxPython where it was recommended
> to Destroy() the menu after it had been used. I had no success on this
> with wxLua as Destroy seems to be (only) bound to the function
> destroying menu elements, not for Destroying complete menu.
>

Use the delete() function to clean it up or better yet, try to reuse it if
possible.

When I have some time I will look into why it is not automatically handled.

Regards,
    John
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to