From: David P. <dpi...@me...> - 2011-03-15 19:38:05
|
> > Unhandled Exception: System.TypeInitializationException: An exception > > was thrown by the type initializer for flearnPINVOKE ---> > > System.TypeInitializationException: An exception was thrown by the > > type initializer for SWIGExceptionHelper ---> > > System.DllNotFoundException: flearn > > at (wrapper managed-to-native) ... > I am having exactly the same problem on Windows, as in my question, "C# > managed DLL cannot load native C++ DLL" (no answer yet). ... Okay, I have one more thought. Maybe the C++ DLL depends on another DLL that cannot be found. On Windows you can open your DLL in Dependency Walker to test for this problem. http://www.dependencywalker.com/ It occurred to me that a 32/64 bit conflict would be a problem, but I think you are supposed to get a different exception in that case (maybe BadImageFormatException??) |