[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [LuaJIT FFI] Crashing when exiting after loading SOIL DLL
- From: James McKaskill <james@...>
- Date: Thu, 29 Dec 2011 15:54:06 -0500
On Thu, Dec 29, 2011 at 15:47, Alex <initrd.gz@gmail.com> wrote:
> The SOIL DLL that I am using: http://dl.dropbox.com/u/10658954/SOIL.dll
> The header I am using with ffi.cdef: http://dl.dropbox.com/u/10658954/soil.h
> I'll be happy to post any more information as needed.
> What may be going wrong here, and how can I fix this?
That header looks simple enough that you could try luaffi with it
(https://github.com/jmckaskill/luaffi/) and then run a debug build of
the standard lua vm with api checks turned on. If you can run it on
non-windows I would further suggest running the above with valgrind.
PS: The main reason I wrote luaffi in the first place is that wading
through the luajit assembly interpreter whilst tracking down crashes
with the FFI is well fun.
-- James