[Mono-bugs] [Bug 28650][Wis] New - Problems with the garbage collector

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
7 Aug 2002 12:14:15 -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 tapia@eitig.com.

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

--- shadow/28650	Wed Aug  7 08:14:15 2002
+++ shadow/28650.tmp.889	Wed Aug  7 08:14:15 2002
@@ -0,0 +1,67 @@
+Bug#: 28650
+Product: Mono/Runtime
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: tapia@eitig.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Problems with the garbage collector
+
+Description of Problem:
+
+The garbaje collector doesn't throw the destructor at the end of the 
+execution of an object. 
+
+Steps to reproduce the problem:
+
+Compile the following code:
+
+-----------------
+
+using System;
+
+class Person
+{
+   ~Person()
+   {
+      Console.WriteLine("Person's object destroyed");
+   }
+}
+
+class Estudent:Person
+{
+   ~Estudiant()
+   {
+      Console.WriteLine("Estudent's object destroyed");
+   }
+
+   public static void Main()
+   {
+      new Estudent();
+   }
+}
+------------
+
+Actual Results:
+
+Nothing at all.
+
+Expected Results:
+
+It would show this output (the MS runtime does):
+
+Estudent's object destroyed
+Person's object destroyed
+
+Additional Information:
+
+I'm using the windows version of Mono 0.13, in a WindowsXP.