|
From: Andre <ar...@ki...> - 2007-07-31 13:07:33
|
John Labenski <jlabenski@...> writes:
>
> It looks like the stack is corrupted and the "GetPage" is function is
> getting swapped with a userdata which is perhaps the notebook.
>
> I cannot duplicate this with the choices.wx.lua sample where I added
> this to the HandleEvents(event) function after making the "notebook"
> variable global.
>
> print(notebook:GetPageCount())
> print(notebook:GetPage(0),
notebook:GetPage(0):DynamicCast("wxPanel"):GetName())
>
> However, there is a bug in the last version where the wxLuaFunctions
> (wrappers around the C functions called for each wrapped method) are
> tracked, but then not cleared. The lua registry table that tracks
> things to be deleted would clear the wrong item if the memory location
> is reused. This may explain why it happens after use for a long time.
>
> I'll try to do a binary release tomorrow, the source will have to wait
> since the configure script is still not working.
>
> Regards,
> John Labenski
>
I have never used the binary where can I get it?
It seems to be somewhat related to event posting.
By the way I am using the new binding functionality to provide auto completion
and function description in my editor and this works relatively well. The
binding code provides all the necessary information which is great.
Thank you
Andre
|