From: klaas.holwerda <kho...@xs...> - 2005-12-29 17:36:36
|
John Labenski wrote: >On 12/29/05, klaas.holwerda <kho...@xs...> wrote: > > >This is a problem, we need to somehow unwind the stack better. The >facilities exist, but sometimes it just errors out some trivial thing >with absolutely no reference to the line number. It'll take some >digging into the lua_Debug code. > > Ha, you are talking about a lua script i think. My problem is the lua C code. I can not debug into that code. Is it generated without debug info?? >The "namespace" is a table where the contents of it are set by >bindings. > > Found it. What should happen if one calls a non existing function on a name space? > >You should use wxEVT_LUA_ERROR. Set an event handler for the >wxLuaState to get these messages. > > Oke, will dig into this soon. >I don't understand when you say the "next two become active"? Next two of what? > > By the next two i mean that wxart2d_BindingInit s_wxart2d_BindingInit; is seen suddenly and therefore the call to this from its construtor. m_binding.GetBindingList()->Append(&m_binding); And thus the bindings are initialized properly. Without any reference to the binding library in my exe/program code, the whole binding library is skipped. > >What about, wxModule? I'll look into that this afternoon. If I >remember correctly it does something very similar to gather up all the >derived wxModule classes. > I am not so sure about this, at least i had to do trick to make sure one module was intialized before the other. Still it works oke. wxModule is realy meant to intialize things before the wxApp is starting. I think it could help us. > I don't have any problems using this >mechanism in gcc in Linux, but I have yet to try to add my own >bindings with msvc. > > wxModule is not so much for static things, but it may solve adding bindings before wxLuaState is used. >Can you reverse the order of linking the .o object files for your >program and the libraries? > > No CMake solves/writes all the makefiles for me. Thanks! Klaas |