T
Trecius
Hello, Newsgroupians:
I've a question regarding a finalizer. Why is it that the finalize method
of a form is never being called?
I create a simple program...
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
~Form1()
{
Console.Beep();
// MessageBox.Show("Cleaning up!");
}
}
static class Program
{
[STAThread]
static void Main()
{
Application.Run(new Form1());
}
}
Why does it not beep or show a message box?
Thank you.
Trecius
I've a question regarding a finalizer. Why is it that the finalize method
of a form is never being called?
I create a simple program...
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
~Form1()
{
Console.Beep();
// MessageBox.Show("Cleaning up!");
}
}
static class Program
{
[STAThread]
static void Main()
{
Application.Run(new Form1());
}
}
Why does it not beep or show a message box?
Thank you.
Trecius