Re: Luajit crashes when I call lua_error (C++ MSVC x64)

  • From: Mike Pall <mike-1207@xxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Sun, 22 Jul 2012 22:57:53 +0200

Mark Tolley wrote:
> After experimenting a bit I stripped all my code down to just
> 
> lua_State *L = luaL_newstate();
> lua_pushliteral(L, "literal");
> lua_error(L);
> 
> and this is still causing a crash.

Well, where do you catch the error? You can choose between
lua_pcall or C++ try/catch, but you really need to use one of
them. An uncaught exception will terminate the process.

--Mike

Other related posts: