07-09-2012 04:10 PM
Hello,
When calling lua_error(L) (pushing a Lua error in an embedded lua interpreter in my CVI code), I have been encountering a complete crash. Not only does my code stop running, but the full CVI 9.1.1 IDE crashes without even an error message. When I look in the windows xp event log I find the following:
The description for Event ID ( 0 ) in Source ( CVI ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: [16:45:30.768] [FATAL] [LW_UAE_Handler] [..\jeff\i386\except.c:161] Assertion failed: 0.
When I recompile my project with visual studio, the identical code does not crash or cause any problems. Any insite on this problem would be greatly appreciated.
thanks,
Alex Corwin
07-09-2012 04:21 PM
One quick update: When I run the same exe directly (i.e. not through the CVI IDE but instead clicking on the executable directly) I do not have this problem. Seems like it may have something to do with how the CVI IDE handles exceptions?
thanks,
alex
07-11-2012 09:20 AM
Hello Alex,
Could you try to generate a crash dump? Also, here is a community example of code using an embedded interpreter LUA in a LabWindows/CVI Project.
Regards,
Jeff L.