This helped tremendously! I still have some problems which I am hoping are equally easy:
1) Once caught, is there a way to retrieve more info about what caused the problem?
Something like line number and cause of exception (e.g. out of range on GetVi call at line 20)? Right now, everything comes back as "unknown exception".
This might be my fault since I added this to my .i file: "%catches (...);" which catches all exceptions on my object, but that was easier than putting specific catches on all the routines of the object.
2) My C++ stuff is doing all its own memory management and sometimes I free stuff which then Lua tries to garbage collect. At least that is what I think is happening since I reuse my Lua state. Is there a way to tell Lua that I own it all? When I debug into my code, I see a check for "own" and the flag is set to false. Is there a way to force to true?
Thanks,
Joey