[Mono-bugs] [Bug 61325][Wis] New - another strange cg behavior
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Thu, 8 Jul 2004 19:30:24 -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 leandro@bol.com.br.
http://bugzilla.ximian.com/show_bug.cgi?id=61325
--- shadow/61325 2004-07-08 19:30:24.000000000 -0400
+++ shadow/61325.tmp.16907 2004-07-08 19:30:24.000000000 -0400
@@ -0,0 +1,79 @@
+Bug#: 61325
+Product: Mono: Runtime
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: leandro@bol.com.br
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: another strange cg behavior
+
+using System;
+using System.Threading;
+
+namespace TestCS
+{
+ class Imortal
+ {
+ public Object o;
+
+ public Imortal()
+ {
+ o = this;
+ }
+
+ ~Imortal()
+ {
+ Console.WriteLine(ToString());
+ }
+ }
+
+
+ public class Test
+ {
+ public static void Main(string[] args)
+ {
+ new Imortal();
+
+
+ System.GC.Collect();
+ Console.WriteLine("System.GC.Collect()");
+
+ Thread.Sleep(2000);
+
+
+ Console.WriteLine("End");
+ }
+ }
+}
+
+
+Actual Results:
+
+System.GC.Collect()
+End
+TestCS.Imortal
+
+
+
+Expected Results:
+
+System.GC.Collect()
+TestCS.Imortal
+End
+
+
+
+How often does this happen?
+
+always.
+
+Additional Information: