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
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...