You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A VS 2017 console application (.NET 4.6.1 as target framework) running on a Windows 10 x64 PC throws following exception at call of the H5F.create(@"C:\mytest.h5", H5F.ACC_TRUN) method, if application built with the AnyCPU (or x86) option as platform target:
BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
It seems to work ok if application built with x64 as platform target.
Is this a normal behaviour?
Later edit: I tested my application also with HDF.PInvoke.NETStandard library instead of HDF.PInvoke. It has the same behaviour for AnyCPU, but it works with x86 (and x64).
The text was updated successfully, but these errors were encountered:
In my case H5F.create() resulted in the following error.
'H5P.FILE_ACCESS' threw an exception of type 'System.TypeInitializationException'
The inner exception shows
"The type initializer for 'HDF.PInvoke.H5DLLImporter' threw an exception.".
I believe the issue is coming from the function GetHid. I am not sure how to address this.
A VS 2017 console application (.NET 4.6.1 as target framework) running on a Windows 10 x64 PC throws following exception at call of the H5F.create(@"C:\mytest.h5", H5F.ACC_TRUN) method, if application built with the AnyCPU (or x86) option as platform target:
It seems to work ok if application built with x64 as platform target.
Is this a normal behaviour?
Later edit: I tested my application also with HDF.PInvoke.NETStandard library instead of HDF.PInvoke. It has the same behaviour for AnyCPU, but it works with x86 (and x64).
The text was updated successfully, but these errors were encountered: