Luabind access violation on module definition

Thales Luis Rodrigues Sabino <[email protected]> Thu, 26 Apr 2012 16:31:19 -0300
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <CAHvrNafzyAk+TtqpBf5GKmJv=UF3LLGzrJbtFWRoda-Y5PBXOg@mail.gmail.com>
Hello everyone,

I'm new to the list and to lua and to luabind. I was looking into a way to
include a script language into my application and lua was my choice. I
discover lua bind project when looking for simple examples for exporting
classes to lua.

I tried run the first example on the documentation

int main( int argc, char* argv[] ) {
 using namespace luabind;

 lua_State *L = luaL_newstate();
 open(L);

module(L) [
 def( "greet", &greet )
];

But it crashes on the module definition. I'm writing a 64bits application
to run under Windows. So, I compiled lua for 64bits and I compiled luabind
to 64bits with VC2010 as well. The problem is that it crashes on the module
definition. More especifically

Unhandled exception at 0x000007fef27438ac (luabind.dll) in
LuaBindExample.exe: 0xC0000005: Access violation writing location
0x000000013f9ff7b1.

Does luabind works with 64bits?

Thanks in advance.

-- 
Anyday, anytime.

http://www.capimlokura.com.br

Thales Luis Rodrigues Sabino
TLuisRS

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

_______________________________________________
luabind-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luabind-user