OK...I am going to use VB6 code here...I know, I know...but I don't know .NET off the top of my head just yet.
I have a class clsWoof
VB Code:
  1. Public Class Class1
  2.     Protected Overrides Sub Finalize()
  3.         MsgBox("Class Terminated")
  4.         MyBase.Finalize()
  5.     End Sub
  6. End Class
Ok, now I am assuming that Finalize in .NET is the same as Terminate in VB 6...am I correct in this assumption?

Now in my form I have:
VB Code:
  1. Private Sub cmdWoof_Click() 'VB 6 code, but u get the idea
  2. Dim objNew   As clsWoof
  3.    objNew = New clsWoof
  4.    objNew = Nothing
  5. End Sub
OK, now I would expect the msgbox to appear when I click the button...NOT when I close my app down...I don't understand? Am I missing something really simple???

Woka (Just started .NET and is being really thick )