[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pnet-developers] Destructors are not being called - bug or usage error?
From: |
David Logan |
Subject: |
[Pnet-developers] Destructors are not being called - bug or usage error? |
Date: |
Fri, 14 May 2004 05:28:54 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7b) Gecko/20040316 |
I need to make sure that this is a bug, and not a usage error. My
destructors are not being called:
using System;
class TestClass {
private string myStr;
public TestClass()
{
myStr = "Hello";
System.Console.WriteLine("Constructor myStr="+myStr);
}
public void zz()
{
System.Console.WriteLine("zz myStr="+myStr);
}
~TestClass()
{
System.Console.WriteLine("Destructor myStr="+myStr);
}
}
class MainMain {
public static void Main(String[] args)
{
TestClass tc = new TestClass();
tc.zz();
System.Console.WriteLine("MainMain:Main");
}
}
address@hidden temp]$ cscc -o t.exe t.cs
address@hidden temp]$ ilrun t.exe
Constructor myStr=Hello
zz myStr=Hello
MainMain:Main
address@hidden temp]$
- [Pnet-developers] Destructors are not being called - bug or usage error?,
David Logan <=
- Re: [Pnet-developers] Destructors are not being called - bug or usage error?, Gopal V, 2004/05/14
- Re: [Pnet-developers] Destructors are not being called - bug or usage error?, Gopal V, 2004/05/14
- Re: [Pnet-developers] Destructors are not being called - bug or usage error?, Rhys Weatherley, 2004/05/14
- RE: [Pnet-developers] Destructors are not being called - bug or usage error?, Thong (Tum) Nguyen, 2004/05/14
- Re: [Pnet-developers] Destructors are not being called - bug or usage error?, David Logan, 2004/05/15
- Re: [Pnet-developers] Destructors are not being called - bug or usage error?, Norbert Bollow, 2004/05/16
- Re: [Pnet-developers] Destructors are not being called - bug or usage error?, Rhys Weatherley, 2004/05/16