April 20, 2012
4:22 p.m.
oh, and as meta-comment, i should add a more comprehensible error message, like 'FFI Callout failed, when trying to coerce arguments' or something like that, instead of 'Generic failure' which is just a sign that primitive failed and no call were performed. But right now, just keep that in mind: every time you got a generic error in FFI callout, first thing you should look at is what are you passing as arguments, and what is C function expects. -- Best regards, Igor Stasenko.