From: Eero P. <epa...@gm...> - 2012-12-21 20:33:34
|
On Fri, Dec 7, 2012 at 7:13 AM, John Labenski <jla...@gm...> wrote: > Use the delete() function to clean it up or better yet, try to reuse it if > possible. > Sorry for a very long delay (I was buried under work...) I guess I might be using an old version of wxLua, but I cannot use delete on the menu? I get an error like wxLua: Unable to call wxuserdata:delete() on object! Function called 'delete(userdata)' 01. wxMenu::delete(wxMenu(self)) (the above was written in I hope I did not make a typo during it) The above happened when I tried menu:delete() menu:Delete is something which deletes parts from a menu, so it does not really help. I managed to improve my situation a lot by making parts of my menu structure reusable, it does not get rid of the leak completely, but it decreases it by an order of magnitude. I will be doing wxLua update, when I have some more time. Eero |