4 messages in net.java.dev.jna.usersRe: [jna-users] RE: Implementing Call...
FromSent OnAttachments
Richard OteroDec 17, 2007 12:02 pm.log
Timothy WallDec 17, 2007 12:37 pm 
Timothy WallDec 17, 2007 7:32 pm 
Richard OteroDec 20, 2007 6:34 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: Implementing Callback and problem with setting values for defineActions...
From:Timothy Wall (twal@dev.java.net)
Date:Dec 17, 2007 7:32:54 pm
List:net.java.dev.jna.users

Update and rebuild. Callbacks should now properly handle ByValue as either parameter or return value.

On Dec 17, 2007, at 3:03 PM, Richard Otero wrote:

One other thing. If the structure is being passed by value, you need to use a ByValue version of your structure, e.g.

public static class MyStruct extends Structure { public static class ByValue extends MyStruct implements Structure.ByValue { } }

Thank you! I've used the above and the example on the site to modify the code to pass the struct by value. It though is still showing similar behavior.

The values are still not passed but at least there is now a message from the JRE with a bit more info. I've attached the log file.

I've upgraded to the latest version of jna.jar within the subversion repository.

Thank you for your help on this!