On 7/15/07, marcos wurzius <[EMAIL PROTECTED]> wrote:
> I attach a sample with the problem.
> One click on the button, open the dialog. Clicking on the notebook tabs ok.
> Second click on the button, open the dialog. And clicking on the notebook
> tabs the images disapeared.
This is due to a fairly serious problem with how wxLua handled
tracking userdata. I am in the middle of changing the libraries that
wxLua links to so I cannot provide a fix for the next day or so, but I
will definitely make another release very soon.
However, the problem can be easily solved in your case by not calling
notebook:GetImageList(), but rather use your imageList variable
directly.
Change this line
print(collectgarbage('count'),noteBook:GetImageList(), imageList, ico1)
to this and it works.
print(collectgarbage('count'),imageList, imageList, ico1)
The problem with wxLua was that an object table is created with a key
of the (void*) pointer to the wxImageList, but should have been to the
userdata that Lua created to encapsulate it.
Thanks,
John Labenski
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
wxlua-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users