Bug 311419 (MONO29534) - Finalizers not called properly
Summary: Finalizers not called properly
Status: RESOLVED MOVED
Alias: MONO29534
Product: Mono: Runtime
Classification: Mono
Component: misc (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-27 23:52 UTC by Gonzalo Paniagua Javier
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 18:00:23 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"