5 messages in net.java.dev.jna.usersRe: [jna-users] Getting IllegalArgume...
FromSent OnAttachments
Niels van EijckJan 21, 2008 3:13 am 
Timothy WallJan 21, 2008 8:07 am 
Niels van EijckJan 22, 2008 4:30 am 
Timothy WallJan 22, 2008 5:59 am 
Niels van EijckJan 22, 2008 7:04 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] Getting IllegalArgumentException when using Structure[] as method argumentActions...
From:Niels van Eijck (nvan@gmail.com)
Date:Jan 22, 2008 7:04:35 am
List:net.java.dev.jna.users

Cool, I've got it working now. Thanks a lot!

On Jan 22, 2008 2:59 PM, Timothy Wall <twal@dev.java.net> wrote:

Structure.toArray needs to ensure memory is allocated and size calculated before recalculating memory requirements. This has been fixed on the trunk.

You can manually do this by calling "size()" prior to calling "toArray ()".