RE: [Kepler-Project] help with luasql.sqlite in my c++ code

2010-10-21 Thread Wilson, Ronald
> Also make sure you are linking to the correct .lib file (it should be > small, not >100K). It is very easy to link Lua statically by mistake, > and this will cause weird crashes at runtime if you then load modules > that were linked to the Lua DLL. The opposite can also happen (your > app i

RE: [Kepler-Project] help with luasql.sqlite in my c++ code

2010-10-21 Thread Wilson, Ronald
e.net [mailto:kepler-project-boun...@lists.luaforge.net] On Behalf Of Ignacio Burgueño Sent: Thursday, October 21, 2010 1:36 PM To: Kepler Project mailing list Subject: Re: [Kepler-Project] help with luasql.sqlite in my c++ code If I understood correctly, your script works fine using the standalone

Re: [Kepler-Project] help with luasql.sqlite in my c++ code

2010-10-21 Thread Fabio Mascarenhas
Also make sure you are linking to the correct .lib file (it should be small, not >100K). It is very easy to link Lua statically by mistake, and this will cause weird crashes at runtime if you then load modules that were linked to the Lua DLL. The opposite can also happen (your app is linked against

Re: [Kepler-Project] help with luasql.sqlite in my c++ code

2010-10-21 Thread Ignacio Burgueño
If I understood correctly, your script works fine using the standalone interpreter, but fails to do so when you run it from your application, right? The error handling in your C++ seems wrong. You load your script, pcall it and if there is an error, you call lua_error. That will invoke your panic