On Tue, Nov 25, 2008 at 8:36 AM, arpin <[EMAIL PROTECTED]> wrote: > If one code the following function > > --wxString BugsGridTable::GetRowLabelValue( int col ) > gridtable.GetRowLabelValue = function( self, row ) > error("unexpected row"); > return "x"..row; > end > > then the program crash instead of reporting the error
This is the same problem as your last report. You're in a virtual C++ function handing the call to your Lua function and apparently the long jump out of the C++ function corrupts the stack (I assume). I will try to debug this, but I don't have very high hopes since I imagine that I would have to override the error() function, save the values, set a flag, and then call it later when it is safe, but I'd still have to return "something" from the C++ function just to get out of it... I'd use a print statement and handle the error as gracefully as possible so the program can continue. Regards, John ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users