E
Eitan
Hello,
I have a WinForm application I am working on.
The application has one main Form with a few buttons. Pressing each of the
buttons will open a new Form. On one of these Forms (the one in question,
RunForm) I am instantiating an Object (a class I wrote and named ChannelComm)
that has a destructor.
This Form in question (RunForm) is started/called in the following way:
RunForm dlg = new RunForm();
DialogResult res = dlg.ShowDialog();
dlg.Dispose();
What I am noticing, using a breakpoint, is that the destructor for
ChannelComm is not called. Why isn’t it called?
Thanks,
Eitan Barazani
I have a WinForm application I am working on.
The application has one main Form with a few buttons. Pressing each of the
buttons will open a new Form. On one of these Forms (the one in question,
RunForm) I am instantiating an Object (a class I wrote and named ChannelComm)
that has a destructor.
This Form in question (RunForm) is started/called in the following way:
RunForm dlg = new RunForm();
DialogResult res = dlg.ShowDialog();
dlg.Dispose();
What I am noticing, using a breakpoint, is that the destructor for
ChannelComm is not called. Why isn’t it called?
Thanks,
Eitan Barazani