[Mono-bugs] [Bug 32287][Maj] Changed - Windows/Linux compatibility problem?

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
7 Nov 2002 16:30:25 -0000


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by fgonthier@hermes.usherb.ca.

http://bugzilla.ximian.com/show_bug.cgi?id=32287

--- shadow/32287	Thu Oct 17 08:36:40 2002
+++ shadow/32287.tmp.23858	Thu Nov  7 11:30:25 2002
@@ -41,6 +41,28 @@
 appears when the same program is run in Windows.
 
 Additional Information:
 I sent my program compiled in Linux to a friend and it didn't run.  The 
 same friend compiled the same program in with Mono for Windows and it run 
 sucessfully with both Mono and Microsoft SDK.
+
+------- Additional Comments From fgonthier@hermes.usherb.ca  2002-11-07 11:30 -------
+If you disassemble the Test.exe (using ildasm) file produced by Mono 
+you see:
+
+[...]
+.subsystem 0x00000002
+[...]
+
+Which is probably wrong because subsystem 2 is Windows GUI and 
+program running in that subsystem can't display anything on the 
+console.  If you change 0x00000002 for 0x00000003 and recompile using 
+ilasm, the Hello World program will work just like the exe produced 
+by CSC.
+
+To target a particular subsystem using CSC, you use /target:exe 
+or /target:winexe but CSC default to /target:exe and console 
+subsystem.
+
+I reproduced this bug on a Win2000 system running .NET SDK 1.0.  
+
+And I managed to try that using the last CVS version of Mono!