Re: luabind::cast_failed doubt

Jon Capps <[email protected]>
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.