[Insight-users] ITK to SWIG to C#

Sam sistephan at gmail.com
Sat Nov 24 16:55:21 EST 2012


Hi,

I have a very simple ITK project in C++ that I generated using CMAKE.  
I did add_library(MyITKProject SHARED Test.h Test.cpp)

I did what I usually do with a non ITK C++ library to move it to C# but in
C# I get the following error.  Any ideas?

System.TypeInitializationException: The type initializer for
'Wrapper.MyITKProjectPINVOKE' threw an exception. --->
System.TypeInitializationException: The type initializer for
'SWIGExceptionHelper' threw an exception. --->
System.BadImageFormatException: An attempt was made to load a program with
an incorrect format.



--
View this message in context: http://itk-insight-users.2283740.n2.nabble.com/ITK-to-SWIG-to-C-tp7581743.html
Sent from the ITK Insight Users mailing list archive at Nabble.com.


More information about the Insight-users mailing list