PC Review


Reply
Thread Tools Rate Thread

DestroyWindow

 
 
=?Utf-8?B?QXJpcw==?=
Guest
Posts: n/a
 
      11th Mar 2004
I have a form with a COM control and inside _Closing event of the form I call ComControl.Dispose() to avoid memory leaks because of the COM control. If I call DestroyWindow() and not use _Closing event, will it dispose the COM control?
 
Reply With Quote
 
 
 
 
Ginny Caughey [MVP]
Guest
Posts: n/a
 
      11th Mar 2004
Aris,

Since COM controls inside forms aren't supported except with a 3rd party
product, I don't know the answer to your question. But generally Dispose()
is the accepted way to go.
--
Ginny Caughey
..Net Compact Framework MVP

"Aris" <(E-Mail Removed)> wrote in message
news056F818-1CA8-4F84-A61C-(E-Mail Removed)...
> I have a form with a COM control and inside _Closing event of the form I

call ComControl.Dispose() to avoid memory leaks because of the COM control.
If I call DestroyWindow() and not use _Closing event, will it dispose the
COM control?


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What happen if delete a CWnd without calling CWnd::DestroyWindow() =?Utf-8?B?bGF1Y2gy?= Microsoft VC .NET 1 26th Aug 2005 12:07 PM
NullReferenceException in DestroyWindow on dialog close =?Utf-8?B?V3lhdHQ=?= Microsoft Dot NET Framework Forms 1 14th Jan 2005 10:21 PM
Access denied when using DestroyWindow( hWnd) =?Utf-8?B?RGF2ZSBMZWFjaA==?= Microsoft Dot NET Framework Forms 2 24th May 2004 11:11 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:34 AM.