4 messages in net.java.dev.jna.usersRe: [jna-users] Mapping two-dimension...
FromSent OnAttachments
Albert StrasheimAug 29, 2007 1:41 pm 
Timothy WallAug 29, 2007 3:30 pm 
Albert StrasheimSep 12, 2007 2:14 pm 
Albert StrasheimSep 12, 2007 2:47 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] Mapping two-dimensional arraysActions...
From:Albert Strasheim (full@gmail.com)
Date:Sep 12, 2007 2:47:03 pm
List:net.java.dev.jna.users

The bug was in my wrapper: a size argument that should have been a NativeLong instead of a long.

The question about building libffi using Visual Studio still remains. It would be useful if JNA could be built using the "standard" Windows toolchain.

I see the ctypes folks did something along these lines already, since Python on Windows is built using Visual Studio.

http://svn.python.org/view/python/trunk/Modules/_ctypes/libffi_msvc/

Cheers,

Albert

----- Original Message ----- From: "Albert Strasheim" <full@gmail.com> To: <use@jna.dev.java.net> Sent: Wednesday, September 12, 2007 11:14 PM Subject: Re: [jna-users] Mapping two-dimensional arrays

<snip>

However, when I arrive in the native function I'm calling, this argument has become null, so it would seem the libffi might be misbehaving. At this point, I don't really know what went wrong, since I can't properly debug the JNA code using Visual Studio, since GCC doesn't generate symbols that this debugger understands.

Any thoughts? I might try to build JNA's native code using Visual Studio so that I can use the debugger all the way through...