12 messages in net.java.dev.jna.usersRe: [jna-users] Re: Structure
FromSent OnAttachments
Paul LoyJan 10, 2008 8:29 am.java
Paul LoyJan 10, 2008 9:31 am.java
Paul LoyJan 10, 2008 9:47 am.java
Timothy WallJan 14, 2008 5:08 am 
Timothy WallJan 14, 2008 5:23 am 
Paul LoyJan 14, 2008 5:46 am 
Paul LoyJan 14, 2008 8:56 am 
Paul LoyJan 14, 2008 9:21 am 
Timothy WallJan 14, 2008 9:57 am 
Timothy WallJan 14, 2008 11:32 am 
Paul LoyJan 15, 2008 2:05 am 
Timothy WallJan 15, 2008 5:41 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] Re: StructureActions...
From:Timothy Wall (twal@dev.java.net)
Date:Jan 14, 2008 5:08:17 am
List:net.java.dev.jna.users

On Jan 10, 2008, at 12:31 PM, Paul Loy wrote:

Note, new java code attached - fixed the unit test (was not initialising everything)

I have botch fixed the bug (by copying a bit of code from getNativeSize(Class, Object)). I doubt that fix is correct but it gives me the correct sizes and at least lets me get further.

I can now get an instance of VariableStructure2, for example, and call size() on it successfully and get the correct size. But if I try to pass this down to a native method, I get an IllegalArgumentException:

java.lang.IllegalArgumentException: Inline array of class SimpleStructure not supported

It should be supported, and may have been broken with the last round of native sizing refactoring. I'll take a look at it.

Thanks for the feedback, T.