Skip to content

Conversation

@starius
Copy link
Member

@starius starius commented Apr 24, 2016

  • do not throw Lua error across C++ try-catch
  • do not throw Lua error across C++ stack objects
    (fix possible memory leaks)
  • start using C++11 (code throwing C++ exceptions
    is in lambdas)

  * do not throw Lua error across C++ try-catch
  * do not throw Lua error across C++ stack objects
    (fix possible memory leaks)
  * start using C++11 (code throwing C++ exceptions
    is in lambdas)
@starius starius force-pushed the fix-exception-issues branch from dac6eff to aeb98fb Compare April 24, 2016 13:29
  * C++ part runThrowing0, which does try-catch
  * Lua part runThrowing, which calls lua_error

This fixes crash on LuaJIT on Visual Studio x86.

See http://www.freelists.org/post/luajit/LuaJIT-crashes-on-C-exceptions-in-Visual-Studio-32-bit-mode,6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant