3 messages in net.java.dev.jna.users[jna-users] Returning NativeLong from...
FromSent OnAttachments
Duncan McGregorSep 22, 2008 2:15 pm 
Timothy WallSep 22, 2008 7:29 pm 
Duncan McGregorSep 23, 2008 2:34 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] Returning NativeLong from invocationActions...
From:Duncan McGregor (dun@oneeyedmen.com)
Date:Sep 22, 2008 2:15:41 pm
List:net.java.dev.jna.users

Its late here, so I apologise for what may be a question with an obvious answer.

Can I return NativeLong from the result of a Function invocation?

I have a TypeMapper that returns NativeLong.class from nativeType(), but this just leads to

java.lang.IllegalArgumentException: Unsupported return type class com.sun.jna.NativeLong in function objc_msgSend at com.sun.jna.Function.invoke(Function.java:348) at com.sun.jna.Function.invoke(Function.java:223) at org.rococoa.MsgSendHandler.invoke(MsgSendHandler.java:90) at com.sun.jna.Library$Handler.invoke(Library.java:202) at org.rococoa.$Proxy0.syntheticSendMessage(Unknown Source) at org.rococoa.Foundation.send(Foundation.java:183) at org.rococoa.Foundation.send(Foundation.java:170)

as there is no Function.invokeNativeLong()

Am I missing something obvious, staring at the screen with bloodshot eyes?

Duncan