3 messages in net.java.dev.jna.users[jna-users] Unsupported argument type...
FromSent OnAttachments
Paul GiffordSep 11, 2008 7:46 am 
Timothy WallSep 11, 2008 7:55 am 
Paul GiffordSep 11, 2008 8:08 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:[jna-users] Unsupported argument type in callback - which parameter is the problem?Actions...
From:Paul Gifford (paul@yahoo.com)
Date:Sep 11, 2008 7:46:43 am
List:net.java.dev.jna.users

Hi,

    I'm getting the following runtime exception:   java.lang.IllegalArgumentException: Unsupported argument type footietest.RunMe$2
at parameter 2 of function SetDataCallback

where SetDataCallback is   public int SetDataCallback(NativeLong hnd, int eventType, PedalCallback cb);   and PedalCallback extends Callback.     1)  Does the parameter number start at 0 or 1?  I'm not sure if the bad argument
is the int or the callback.  I suspect it's the latter so...   2) Will that exception be thrown if I screwed up the signature for the callback
method (in the PedalCallback interface)?   Thanks,   Paul