cmondestin / luainterface

Automatically exported from code.google.com/p/luainterface
0 stars 0 forks source link

Calling lua_error inside a LuaCSFunction throws SEHException #38

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Declare and register a simple LuaCSFunction that calls lua_error
2. Call the function

What is the expected output? What do you see instead?
The code should continue to run, with Lua reporting an error. Instead, the 
program suffers this exception and doesn't report the error.

What version of the product are you using? On what operating system?
2.0.3 on W7 x64, targeting x86

Please provide any additional information below.

Given that luaL_error wraps lua_error, it is affected as well.

With the example code below, simply copy it into any VB project, add a 
reference to lua51.dll in the most recent download, and call example.Main - the 
program throws the SEHException.

Original issue reported on code.google.com by kogitsune26@gmail.com on 22 Aug 2011 at 10:40

Attachments: