Jump to content
  • Advertisement
Sign in to follow this  
HexDump

Random crashes using luabind from a dll.

This topic is 3716 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all, I´m having a really bad time trying to make luabind work inside a dll. I use C4 engine (I really recomend it, nice cute engine) and as you may know game code are built inside a dll that the main exe loads and executes. I have linked luabind+lua as lib, dll, all code inside the game project and I allways get a crash when trying to expose a class to lua (.def luabind method). Has been anybody able to use it with C4 or knows what could be hapenning? Same code executed in a console app works perfectly (no dll). Edit: I´m using last shot of luabind, lua and boost. Edit: After doing some tests. It seems to crash randomly, if I move registration code (the one that register my class to lua) to a function it crashes (it was executing from c4 pp constructor). If now I add some code to main, it works ok. Anyway, this seems to be just random, there's no crash pattern. Thanks in advance, HexDump.

Share this post


Link to post
Share on other sites
Advertisement
lua5.1 with luabind 0.7?

I'm pretty sure i had similar issues which i tracked back to exposing stuff, just as you do. I just went with lua50 and it all went fine. I know this isn't a real solution, u'm just sharing ;D

Never tried static linking so i'm not really sure if it's the same error.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!