[Mono-devel-list] Issue of binary portability of a hello world application
Chris Pietschmann
Chris at PietschSoft.com
Sun Aug 8 13:36:49 EDT 2004
Visual Studio is set to compile apps in Debug because that is how you are
able to debug the app with the Visual Studio IDE. Mono doesn’t support Debug
mode. You need to do a Release compilation of the app for it to run on Mono.
To do this:
Click the Build menu then Configuration Manager then change the Active
Solution Configuration from Debug to Release.
Christopher Pietschmann, MCSD, MCAD
HYPERLINK "http://PietschSoft.com"http://PietschSoft.com
HYPERLINK "http://SlapDev.com"http://SlapDev.com
--- Original Message ---
Date: Sun, 08 Aug 2004 03:37:10 +0300
From: Ioannis Vranos <ivr at grad.com>
To: mono-devel-list <mono-devel-list at lists.ximian.com>
Subject: [Mono-devel-list] Issue of binary portability of a hello world
application
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000099">
Hello fellow developers. I just installed Mono the hard way in White
Box 3 Respin 1 GNU/Linux (a Red Hat variant) because I want to
experiment with binary portability between .NET and Mono.<br>
<br>
I created a simple CLI hello world program with current C++ "Managed
Extensions" in VS 2003 and these are the contents of the main .cpp
HYPERLINK "file:///\\\\%3cbr%3e"Error! Hyperlink reference not valid.
<br>
<br>
<br>
#include "stdafx.h"<br>
<br>
#using <mscorlib.dll><br>
<br>
using namespace System;<br>
<br>
int _tmain()<br>
{<br>
Console::WriteLine(S"Hello World");<br>
return 0;<br>
}<br>
<br>
<br>
Well when I run the executable in GNU/Linux using mono Manage.exe I get
the error:<br>
<br>
<br>
** ERROR **: file marshal.c: line 3096
(mono_marshal_get_native_wrapper): assertion failed:
(method->signature->pinvoke)<br>
aborting...<br>
Aborted<br>
<br>
<br>
<br>
Well it is obvious that an assert condition in Mono's code is violated
(why is it compiled in debug mode?). But why is it happening, any
ideas? (apart from the fact that assert failure indicates a bug if it
is used as it is supposed to).<br>
<br>
<br>
<br>
<br>
<br>
<br>
Best regards,<br>
<br>
Ioannis Vranos
</body>
</html>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.735 / Virus Database: 489 - Release Date: 8/6/2004
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040808/4c4e1bd5/attachment.html
More information about the Mono-devel-list
mailing list