Sign in to follow this  
Idov

SWIG problems...

Recommended Posts

Idov    210
Hi!
I'm trying to use a C++ DLL in a C# application,
so I followed the instructions, ran SWIG without any errors or warnings
but then when I tried to create a "C++ class" in my C# application
I got this exception:

The type initializer for 'TerminalWrapper.TerminalWrapperPINVOKE' threw an exception

I did put the c++ dlls in the C# application debug directory.
does anybody know what does this exception mean or what's wrong?
thanks :)

BTW : SWIG = http://www.swig.org/

Share this post


Link to post
Share on other sites
Idov    210
Quote:
Original post by TheTroll
What was the exception?

theTroll


{"The type initializer for 'TerminalWrapper.TerminalWrapperPINVOKE' threw an exception."}
with an inner exception:
"The type initializer for 'SWIGExceptionHelper' threw an exception."

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this