https://bugzilla.novell.com/show_bug.cgi?id=433908
User [EMAIL PROTECTED] added comment https://bugzilla.novell.com/show_bug.cgi?id=433908#c2 --- Comment #2 from Hubert FONGARNAND <[EMAIL PROTECTED]> 2008-10-09 08:51:37 MDT --- In fact, this is not a problem with Npgsql it comes from mono : if a class inherits for another class with a destructor, this destructor (of the parent class) will never be called if the final class hasn't a destructor small test case : public static void Main(string[] args) { TestFinalizer() ; } class ParentClass { ~ParentClass() { Console.WriteLine("Destuctor of parent called"); } public ParentClass() { } } class ChildClass : ParentClass { public ChildClass() { } } private static void TestFinalizer() { for (int i=0;i<100;i++){ ChildClass cnx=new ChildClass(); cnx=null; GC.Collect(); Console.ReadLine(); } } If you run it on mono 2-0 it display nothing when you press enter If you run it on mono 1.9 it displays : Destuctor of parent called Destuctor of parent called Destuctor of parent called -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
