lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

I'm having issues with loading SOIL ( ) via LuaJIT 2 beta 9 FFI. The
library works and loads textures, however, when the script finishes,
the luajit interpreter crashes. Upon termination, the windows
"luajit.exe has stopped working" window appears, with the following

Problem signature:
  Problem Event Name:	APPCRASH
  Application Name:	luajit.exe
  Application Version:
  Application Timestamp:	4efb935e
  Fault Module Name:	libgcc_s_dw2-1.dll
  Fault Module Version:
  Fault Module Timestamp:	4ed82a4d
  Exception Code:	40000015
  Exception Offset:	0001765a
  OS Version:	6.1.7601.
  Locale ID:	1033
  Additional Information 1:	c0da
  Additional Information 2:	c0da7258d6f746fa82d87de877e1ac7b
  Additional Information 3:	80d6
  Additional Information 4:	80d64fb0bd701ac67a25912351d1d102

I've searched for a solution on Google, but didn't find anything
relevant. I've updated MinGW, but no help. GDB didn't provide any
special output, other than the fact that the program exited with
return code 03.

The SOIL DLL that I am using:
The header I am using with ffi.cdef:
I'll be happy to post any more information as needed.
What may be going wrong here, and how can I fix this?