[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [LuaJIT FFI] [Windows] "bad callback" error in MsgWaitForMultipleObjects() proof-of-concept
- From: Ignacio Burgueño <ignaciob@...>
- Date: Fri, 23 Dec 2011 19:01:16 -0200
On Fri, Dec 23, 2011 at 6:43 PM, Mike Pall <firstname.lastname@example.org>
The problem is that a FFI callback cannot safely be called from a
C function which is itself called via the FFI from JIT-compiled
code. In your case this is the call to MsgWaitForMultipleObjects.
Sorry Mike. I might be missing something obvious but what would be the call sequence in this case? I can't see any callbacks in the code Duncan sent.