[Mono-list] Embedding on Windows - TypeLoadException
Paril
paril at alteredsoftworks.com
Fri Oct 14 05:13:15 EDT 2011
Hi there.
I have a strange issue with Mono and embedding it on Windows. I have
followed all of the steps to get it installed and working with Windows
(built the source to get the .lib file & debug DLL files to help, installed
the runtime). I'm trying to do just a simple experiment of calling C# from C
- for the most part it works, except I can't use any types except the
internal base types (int, double, string, char, etc). Using any other type
throws a TypeLoadException (which actually aborts my entire program - I had
to debug through to find it) with no message, stack trace or anything
telling me which type it's failing to load.
I'm using Visual Studio 2010 to build both projects.
C# side: http://pastebin.com/xA9h7fPB
C++ site: http://pastebin.com/2HUSLugG
I really have no idea what to make of this - I would expect Mono to
automatically load mscorlib and all of that, but it's deciding not to for
some strange reason.
Anybody have any explanations?
-P
--
View this message in context: http://mono.1490590.n4.nabble.com/Embedding-on-Windows-TypeLoadException-tp3904216p3904216.html
Sent from the Mono - General mailing list archive at Nabble.com.
More information about the Mono-list
mailing list