[Mono-bugs] [Bug 349080] Crash : C# forms application cannot use C++ CLI class library
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Dec 17 06:41:24 EST 2007
https://bugzilla.novell.com/show_bug.cgi?id=349080
User jpryor at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=349080#c1
Jonathan Pryor <jpryor at novell.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jpryor at novell.com
--- Comment #1 from Jonathan Pryor <jpryor at novell.com> 2007-12-17 04:41:23 MST ---
The error generated by mono is fairly self-explanetory:
** ERROR **: Method
'<Module>:<CrtImplementationDetails>.DoDllLanguageSupportValidation ()' in
assembly '/home/jon/tmp/CLICall/CLICall/bin/Release/CPPAssembly.dll' contains
native code and mono can't run it. The assembly was probably created by Managed
C++.
aborting...
In short, CPPAssembly.dll is a mixed-mode assembly, an assembly that contains
both managed and native code. Mono cannot deal with these.
You should try compiling your C++/CLI assembly with the /clr:safe flag, and if
that doesn't help, see if there's a way to remove the dependency on unmanaged
code. (There was with VS2003, but the VS2005 C++/CLI language is completely
different.)
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list