Jump to content
  • Advertisement
Sign in to follow this  
Idov

SWIG problems...

This topic is 2802 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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
wait... later it says " InnerException: System.DllNotFoundException"
but I have the DLL in the debug directory!!! it's so weird...

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!