Bugzilla – Bug 311419
Finalizers not called properly
Last modified: 2007-09-15 21:24:46 UTC
---- Reported by gonzalo@ximian.com 2002-08-27 16:52:44 MST ---- Steps to reproduce the problem: 1. Try this: using System; class A { public A () { throw new NotImplementedException (); } ~A () { Console.WriteLine ("Destructor"); } } class C { static void Main () { try { A a = new A (); } catch { GC.Collect (); } } } either throwing the exception or not. Actual Results: (no output) Expected Results: Destructor Additional Information: Under MS runtime, finalizers are called in both cases (throwing exception and not). ---- Additional Comments From lupus@ximian.com 2002-09-06 06:38:39 MST ---- *** This bug has been marked as a duplicate of https://bugzilla.novell.com/show_bug.cgi?id=MONO28650 *** Unknown operating system unknown. Setting to default OS "Other". This bug was marked DUPLICATE in the database it was moved from. Changing resolution to "MOVED"