Re: luabind::cast_failed doubt
Kristoffer Danielsson <[email protected]>
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <[email protected]> |
I got it working by calling e.what() instead of reading Lua stack. Thanks for the explanation! > From: [email protected] > To: [email protected] > Date: Mon, 14 Feb 2011 19:29:10 -0500 > Subject: Re: [luabind] luabind::cast_failed doubt > > > On Feb 14, 2011, at 7:32, Kristoffer Danielsson <[email protected] > > wrote: > > > Luabind 0.9.1 (I think :P) > > Why can't I retrieve error message from lua stack when cast_failed > > is thrown?! > > Because it's not a lua error. What's happening is that the lua > function yuo're calling either isn't returning a value, or luabind > doesn't know how to cast the return value to whatever type you're > asking for. (There is a more technical explanation, but I'm not > conversant enough with luabind to give it.) > > If you post the relevant lua function and the section of your C++ > code that calls it, you may get some help fixing the type mismatch. > > Jon > > > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > _______________________________________________ > luabind-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/luabind-user ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ luabind-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/luabind-user