Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix issues with C++, exceptions and stack objects #39

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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