Click here to Skip to main content
15,902,299 members
Home / Discussions / C#
   

C#

 
AnswerRe: Windows service failed to start. Pin
Gonzalo Cao18-Jun-10 1:43
Gonzalo Cao18-Jun-10 1:43 
GeneralRe: Windows service failed to start. Pin
Anil Veeraghattapu 418-Jun-10 2:35
Anil Veeraghattapu 418-Jun-10 2:35 
AnswerRe: Windows service failed to start. Pin
R. Giskard Reventlov18-Jun-10 2:31
R. Giskard Reventlov18-Jun-10 2:31 
Questionhow to destroy window handle Pin
KaurGurpreet17-Jun-10 22:54
KaurGurpreet17-Jun-10 22:54 
AnswerMessage Closed Pin
17-Jun-10 23:12
stancrm17-Jun-10 23:12 
GeneralRe: how to destroy window handle Pin
KaurGurpreet17-Jun-10 23:21
KaurGurpreet17-Jun-10 23:21 
AnswerRe: how to destroy window handle Pin
Luc Pattyn18-Jun-10 1:22
sitebuilderLuc Pattyn18-Jun-10 1:22 
AnswerRe: how to destroy window handle Pin
Dave Kreskowiak18-Jun-10 2:03
mveDave Kreskowiak18-Jun-10 2:03 
KaurGurpreet wrote:
How do I need to clear window handle?


You don't. That's handled by the controls themselves.

If you're running into this problem, it could be that your Showing a form with ShowDialog (not Show!), but never Disposing it when you're done. Just because you can't see the form anymore doesn't mean it's gone. If you don't Dispose the form, you're leaking resources (handles). This issue does not come up if the form is shown with the Show method.

If you're putting up hundreds and hundreds of controls, your design is the problem, not the window handles being released.

A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008
But no longer in 2009...




QuestionList all users of computer Pin
Sunil G17-Jun-10 22:53
Sunil G17-Jun-10 22:53 
AnswerMessage Closed Pin
17-Jun-10 23:07
stancrm17-Jun-10 23:07 
GeneralRe: List all users of computer Pin
Sunil G17-Jun-10 23:19
Sunil G17-Jun-10 23:19 
GeneralRe: List all users of computer Pin
ddecoy18-Jun-10 2:14
ddecoy18-Jun-10 2:14 
QuestionHow to create xmpp client using C# Pin
manjeeet17-Jun-10 22:20
manjeeet17-Jun-10 22:20 
Answercross-post Pin
Luc Pattyn18-Jun-10 2:30
sitebuilderLuc Pattyn18-Jun-10 2:30 
QuestionReading CDATA text from RSS Feed using LINQ to xml Pin
faheemnadeem17-Jun-10 21:48
faheemnadeem17-Jun-10 21:48 
AnswerRe: Reading CDATA text from RSS Feed using LINQ to xml Pin
i gr817-Jun-10 23:05
i gr817-Jun-10 23:05 
GeneralRe: Reading CDATA text from RSS Feed using LINQ to xml Pin
faheemnadeem17-Jun-10 23:40
faheemnadeem17-Jun-10 23:40 
GeneralRe: Reading CDATA text from RSS Feed using LINQ to xml Pin
i gr818-Jun-10 1:32
i gr818-Jun-10 1:32 
GeneralRe: Reading CDATA text from RSS Feed using LINQ to xml Pin
faheemnadeem18-Jun-10 1:47
faheemnadeem18-Jun-10 1:47 
QuestionUSB device abrupt removal causes exception Pin
CelestialCoder17-Jun-10 21:05
CelestialCoder17-Jun-10 21:05 
QuestionCould the Derived class hide the base class method? Pin
yu-jian17-Jun-10 17:06
yu-jian17-Jun-10 17:06 
AnswerRe: Could the Derived class hide the base class method? Pin
Dan Mos17-Jun-10 17:12
Dan Mos17-Jun-10 17:12 
AnswerRe: Could the Derived class hide the base class method? Pin
PIEBALDconsult17-Jun-10 17:25
mvePIEBALDconsult17-Jun-10 17:25 
GeneralRe: Could the Derived class hide the base class method? Pin
#realJSOP17-Jun-10 23:54
professional#realJSOP17-Jun-10 23:54 
GeneralRe: Could the Derived class hide the base class method? Pin
DaveyM6918-Jun-10 2:22
professionalDaveyM6918-Jun-10 2:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.