CSharpFeeds - All your C# feeds in one place.

Friday, February 27, 2009

Winforms Gotcha: Form.Close() doesn't always call Dispose()

by FransBouma via Frans Bouma's blog on 2/27/2009 5:06:18 PM

I just ran into a weird issue. During profiling I saw that controls on a form which was already closed were still reacting to events. I checked whether the Dispose() routine of the particular Form was called, but it wasn't. However, the Dispose() routine of other forms was called after it was closed, as in: immediately. The difference between the two situations was that if I used Form.ShowDialog(parentForm), a call to Close() on the particular form didn't call Dispose. Checking the Form.Close( ...

[ read more ]

What's in a name?

by skeet via Jon Skeet: Coding Blog on 2/27/2009 11:29:00 AM

T.S. Eliot had the right idea when he wrote "The naming of cats": The Naming of Cats is a difficult matter,It isn't just one of your holiday games...When you notice a cat in profound meditation,The reason, I tell you, is always the same:His mind is engaged in a rapt contemplationOf the thought, of the thought, of the thought of his name:His ineffable effableEffanineffableDeep and inscrutable singular Name. Okay, so developers may not contemplate their own names much, but I know I ...

[ read more ]

Subscribe

New Feed

Product Spotlight

Recently Updated Sources

Legal Note

The content of the postings is owned by the respective author. CSharpFeeds is not responsible for the contents of the postings. This site is automatically generated and cannot be reviewed for abusive content. If you find abusive content on CSharpFeeds, please contact us. Designated trademarks and brands are the property of their respective owners. All rights reserved.

Advertise with us