Josha, switching the calling conventions is the right thing to do. We'll
update the source and provide new binaries by Monday (5/27).
Note: this is a 32-bit Windows issue, since there is only one calling
convention
in 64-bit Windows.

Thanks for pointing this out!
G.


-----Original Message-----
From: [email protected] [mailto:[email protected]]
On Behalf Of josha
Sent: Friday, May 27, 2011 9:02 AM
To: [email protected]
Subject: Re: [Hdf-forum] "PInvokeStackImbalance was detected" from HDFDotNet
1.8.7

The HDF5DotNet wrapper-library is calling the HDF5 1.8.7 library. 

It looks like changing all the calling conventions for the HDF5 library
prototypes in the HDF5DotNet files from
"CallingConvention=CallingConvention::StdCall" to
"CallingConvention=CallingConvention::Cdecl" fixed the problem (at least
made the MDA/PInvokeStackImbalance go away).  

I don't know why they were changed from Cdecl originally to StdCall anyway
(as it appears that the HDF5 library expects cdecl).  Any ideas?

--
View this message in context:
http://hdf-forum.184993.n3.nabble.com/PInvokeStackImbalance-was-detected-fro
m-HDFDotNet-1-8-7-tp2990766p2993001.html
Sent from the hdf-forum mailing list archive at Nabble.com.

_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org


_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Reply via email to