Garbage Collection and Visual Studio

  • Thread starter Thread starter Steve Murphy
  • Start date Start date
Jon Skeet said:
Very odd. Have you had a look at the code inside InitializeComponent?
In the empty project I've got, it gets created there...

Not there. I'll create an empty project and check it there. I've been using this
app to try out a number of things. It's possible that I did something to muck up
the designer code.

Hmm. Given the various problems, this doesn't sound like it's going to
be particularly productive :( I suggest you just hijack the designer-
generated Dispose method. If you wanted to keep what's there there, you
could create your own class derived from the designer-created class,
and override Dispose there. Always create an instance of the derived
class rather than an instance of the designer-created class.

Agreed. So you like putting it the designer's dispose method rather than the
form's Close event method?


Thanks for all the help,
Steve Murphy
 
Back
Top