[Mono-bugs] [Bug 52709][Nor] Changed - System.Diagnostics.Debug methods unexpected behaviour when DEBUG defined

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 21 May 2004 15:48:55 -0400 (EDT)

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 marek.safar@seznam.cz.


--- shadow/52709	2004-05-14 16:13:17.000000000 -0400
+++ shadow/52709.tmp.3210	2004-05-21 15:48:55.000000000 -0400
@@ -159,6 +159,32 @@
 Any ideas?
 ------- Additional Comments From jackson@ximian.com  2004-05-14 16:13 -------
 Moving to compilers, this looks like an MCS bug.
+------- Additional Comments From marek.safar@seznam.cz  2004-05-21 15:48 -------
+I think it is not compiler problem. I assume that problem is with
+Try to compile&run the first code sample.
+When I run i get (cygwin environment):
+Unhandled Exception: System.TypeInitializationException: An exception
+was thrown
+ by the type initializer for System.Diagnostics.TraceImpl --->
+ion.ConfigurationException: Cannot find
+in <0x000c7> System.Configuration.DefaultConfig:Init ()
+in <0x0000f> System.Configuration.DefaultConfig:GetConfig (string)
+in <0x0006e> System.Configuration.ConfigurationSettings:GetConfig (string)
+in <0x00048> System.Diagnostics.DiagnosticsConfiguration:get_Settings ()
+in <0x00089> System.Diagnostics.TraceImpl:.cctor ()
+--- End of inner exception stack trace ---
+in (unmanaged) System.Diagnostics.TraceImpl:WriteLine (string)
+in <0x0000b> System.Diagnostics.Debug:WriteLine (string)
+in <0x0000c> debugtest:Main (string[])