John Labenski wrote:
> Find "a2dMaskProc" in the generated C++ code, it should be in a
> wxLuaBindObject as { "a2dMaskProc", g_wxluatag_XXX, NULL, (const
> void**)&a2dMaskProc }. Of course, you should be using %define_pointer
> if and only if a2dMaskProc is declared in C++ as "MaskprocLuaWrapper*
> a2dMaskProc;" and %define_object if this "MaskprocLuaWrapper
> a2dMaskProc;".
>
Its is a real pointer, i checked its value, as it was assigned in C++ at
the start, and this value it has in wxlObject->pObjPtr when
wxluaT_pushusertag()is called for it. I think wxlObject contains the
right info at that point, but why lua_rawset is failing deep down, i
don't know.
The wrapping/binding seems fine, it is as you said it should be.
> wxluaT_pushusertag(L, *wxlObject->pObjPtr,
> *wxlObject->wxluatype, true);
>
> lua_rawset(L, -3);
> }
>
> Hope this helps,
>
I am afraid not, and since it worked all the time since my last upgrade
to CVS, i think there may be a bug hanging around.
To bad i don't know how to find it. It might be something else is
responsible for destroying memory, and only this only pointer in the
last binding makes this clear. Also this part of the code is passed
several times without problem, so ...
I keep trying, who knows i find something. For me its like a black box
inside lua. I understand you can't say much about it.
Thanks!
Klaas
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
wxlua-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users