On Mon, Nov 24, 2008 at 2:12 AM, Raúl Huertas <[EMAIL PROTECTED]> wrote:
>
> Whel, what I did for use lua 5.1.4 was to change all the content in the lua
> source bundle with wxLua(v5.1.3) with the more recent 5.1.4. Since it's just
> a bug fix release, there is no problem.

Ok, but I might be wary of this. You can fetch the CVS version of
wxLua which has been upgraded to Lua 5.1.4.

> I'm working in Linux Ubuntu 8.10. I've tested with GCC 4.2 and Intel
> compiler 11.0, both the same result.
>
> In the program I sent there wasn't a requiere("wx") beacuse I was using the
> class wxLuaState. But then I removed the wxLua stuff from the C Code and add
> the 'require' function. The two frames are showed. Then the application
> crash just in lua_close.

If you use require("wx") then lua_close(L) is appropriate, however if
you use a wxLuaState then use wxlState.CloseLuaState(true); to have it
cleanup wxLua properly.

> There wouldn't be a problem if I only would need one lua_State(and I think I
> shouldn't use more), but, what if I need more LuaStates?

You can have many lua_States each with wxLua loaded with no problem.

-----------------------------------------

Could you compile wxLua and Lua with debug symbols and run your
program in gdb? When the program crashes just type "bt" (for
backtrace) and post the results.

Regards,
     John

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to