On 8/1/07, Andre <[EMAIL PROTECTED]> wrote:
> John Labenski <[EMAIL PROTECTED]> writes:
> > Ok, that's the current CVS. Hopefully you'll get the same results with that.
>
> I was able to compile wxlua.exe in dev studio removing the link to the gl lib.

We link to the wxWidgets GL library since there was a user that was
using it. Does dev studio (mingw right?) not allow you to compile the
wxWidgets GL library or did you not compile it yourself?

> The code still have the same problem.

How could it? The executable,
http://wxlua.sourceforge.net/download/wxlua_2007_07_31_exe.zip, was
compiled directly from the CVS head source code yesterday and so it
should be identical to the one you compiled? I compiled it using MSVC
6, maybe there's a problem with MingW?

Could you add the wxPrintf statement to this function in
modules/wxlua/src/wxlstate.cpp
I would expect that when the error occurs that the "tag" variable
would be equal to the g_wxluatag_wxLuaFunction tag, but the wxlua_ttag
would return something else. In fact, the wxlua_ttag should always
equal the "tag" variable.

bool LUACALL wxlua_tpushusertag(lua_State *L, const void *u, int tag,
bool track)
{
...
  wxlua_pushkey_wxLuaObjects(L);
  lua_rawget(L, LUA_REGISTRYINDEX); // pop key, push result (the obj table)
  lua_pushlightuserdata(L, (void*)u); // key on Lua's userdata
  lua_rawget(L, -2);

  if (wxlua_iswxuserdata(L, -1))
  {
     wxPrintf(wxT("HELP! %d = %d  %d\n"), wxlua_ttag(L, -1), tag,
g_wxluatag_wxLuaFunction);
     lua_remove(L, -2); // remove the obj table
     return true;
  }


Thanks,
    John Labenski

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
wxlua-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to