Random crashes using luabind in a dll. (desperated cry) :(

View: New views
2 Messages — Rating Filter:   Alert me  

Random crashes using luabind in a dll. (desperated cry) :(

by HexDump HellRaiser :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
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.

¡Es tiempo de inaugurar tu piscina! Entra en Eventos e invita a todos tus amigos, crea paneles de discusión y sube las fotos más divertidas Eventos
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
luabind-user mailing list
luabind-user@...
https://lists.sourceforge.net/lists/listinfo/luabind-user

Re: Random crashes using luabind in a dll. (desperated cry) :(

by Philip Degarmo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I've had similar symptoms but I assumed it was my fault as I am linking statically to my DLL and my main library. It is probably still my fault it's happening, but maybe this information will bring to mind something. I have not resolved my issue but I have not tried hard to solve it yet either.

Thanks
Philip

On Fri, Aug 15, 2008 at 2:13 PM, HexDump HellRaiser <hexdump2002@...> wrote:
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.

¡Es tiempo de inaugurar tu piscina! Entra en Eventos e invita a todos tus amigos, crea paneles de discusión y sube las fotos más divertidas Eventos

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
luabind-user mailing list
luabind-user@...
https://lists.sourceforge.net/lists/listinfo/luabind-user



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
luabind-user mailing list
luabind-user@...
https://lists.sourceforge.net/lists/listinfo/luabind-user
LightInTheBox - Buy quality products at wholesale price!