5 messages in net.java.dev.jna.usersRe: [jna-users] RE: Callback to Mac C...
FromSent OnAttachments
Alan SnyderSep 3, 2008 1:52 pm 
Timothy WallSep 3, 2008 1:59 pm 
Alan SnyderSep 3, 2008 2:52 pm 
Alan SnyderSep 3, 2008 4:10 pm 
Timothy WallSep 3, 2008 4:17 pm 
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: [jna-users] RE: Callback to Mac Carbon APIs.Actions...
From:Timothy Wall (twal@dev.java.net)
Date:Sep 3, 2008 1:59:12 pm
List:net.java.dev.jna.users

On Sep 3, 2008, at 4:52 PM, Alan Snyder wrote:

Make sure you don't have multiple copies of JNA classes in your

classpath. I don't see multiple copies of these classes. The error happens both when running from the command-line just the same as in the debugger. (Although the debugger does have both the source and jar file. The jar file is needed for "libjnidispatch.so" does OSX pull that file from the package "com.sun.jna.freebsd-i386" or "com.sun.jna.linux- i386"? I don't see a package for the mac.

OSX has a universal binary called libjnidispatch.jnilib, which gets extracted to a temporary file before being loaded. If you put it on DYLD_LIBRARY_PATH it'll get loaded from there instead.

Do you have multiple class loaders? Only see one application class loader in the IDE.

What happens when you do "x instanceof Callback" explicitly on your new callback instance?

"x instanceof Callback" is false while at the same time: "x instnaceof EventHandlerProcPtr" is true.

Callback.class.isAssignableFrom(EventHandlerProcPtr.class)?