8 messages in net.java.dev.jna.usersRe: "Native call setup failure" passi...
FromSent OnAttachments
Duncan McGregorDec 13, 2007 6:52 am 
Duncan McGregorDec 13, 2007 7:19 am 
Timothy WallDec 13, 2007 7:41 am 
Timothy WallDec 13, 2007 8:01 am 
Duncan McGregorDec 13, 2007 2:12 pm 
Timothy WallDec 13, 2007 4:14 pm 
Duncan McGregorDec 14, 2007 2:35 am 
Duncan McGregorDec 14, 2007 3:55 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: "Native call setup failure" passing struct of struct by valueActions...
From:Duncan McGregor (dun@oneeyedmen.com)
Date:Dec 13, 2007 7:19:00 am
List:net.java.dev.jna.users

Caused by: java.lang.IllegalArgumentException: Native call setup failure: 1

Beginning to answer my own question, now that I've found the native source again, the 1 is the result of ffi_prep_cif, and looks to be FFI_BAD_TYPEDEF. What I don't now understand is how sometimes ffi_prep_cif can succeed, and other times fail. Predictably, it always seems to succeed when run under the XCode debugger. Synchronisation? Garbage collection?