7 messages in net.java.dev.jna.usersRe: [jna-users] callback function poi...
FromSent OnAttachments
fixf...@online.deMay 20, 2008 2:38 am 
Johannes RollenbeckMay 20, 2008 3:39 am 
Timothy WallMay 20, 2008 5:32 am 
Johannes RollenbeckMay 20, 2008 7:41 am 
Johannes RollenbeckMay 20, 2008 7:58 am 
Timothy WallMay 20, 2008 7:58 am 
Johannes RollenbeckMay 21, 2008 12:14 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: [jna-users] callback function pointer inside structActions...
From:Timothy Wall (twal@dev.java.net)
Date:May 20, 2008 7:58:48 am
List:net.java.dev.jna.users

On May 20, 2008, at 10:41 AM, Johannes Rollenbeck wrote:

Is this also carried out, when 'req_pend.req_done = new CBrequestDone();' is carried out? With Structure there is a difference when used as parameter or as member of a Structure (ByReference vs. ByValue). May there be something similar with Callback?

Compare Structure.writeField(StructField) with Function.convertArgument. The handling of Callback is the same.

What is the value of the req_id field? If zero, then neither of your fields is being copied to native memory, or the memory is being inadvertently cleared.

Set jna.dump_memory=true and print the structure just prior to calling "callCallback".