PC Review


Reply
Thread Tools Rate Thread

Modal dialog and webbrowser control leak

 
 
Guest
Posts: n/a
 
      25th Jun 2003
I have discovered a leak when using the webbrowser control on a form
displayed as a modal dialog. Navigate has to be called to see the leak.

While viewing Task Manager's Processes tab, it appears to leak a 'USER
Object', 'Handle' and 'Virtual Memory'. While using Spy++, I can see that
it leaves behind an 'Internet Explorer_Hidden' window every time I display
my modal dialog. Calling the form's Dispose method does not help. If I
display the form as modeless, this leak does not occur.

In my Dispose method I can add code that sends an IDCANCEL to all child
windows of the modal dialog and this will close the hidden window and plug
the leak. I'm not sure if this is safe to do though.

Has anyone else run into this problem? Any other safe work arounds?

Thanks,
Jeff Young
Software Engineer




 
Reply With Quote
 
 
 
 
ZeusDDawg
Guest
Posts: n/a
 
      26th Jun 2003
Anyone from Microsoft care to comment?

Thanks,
Jeff

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I have discovered a leak when using the webbrowser control on a form
> displayed as a modal dialog. Navigate has to be called to see the leak.
>
> While viewing Task Manager's Processes tab, it appears to leak a 'USER
> Object', 'Handle' and 'Virtual Memory'. While using Spy++, I can see that
> it leaves behind an 'Internet Explorer_Hidden' window every time I display
> my modal dialog. Calling the form's Dispose method does not help. If I
> display the form as modeless, this leak does not occur.
>
> In my Dispose method I can add code that sends an IDCANCEL to all child
> windows of the modal dialog and this will close the hidden window and plug
> the leak. I'm not sure if this is safe to do though.
>
> Has anyone else run into this problem? Any other safe work arounds?
>
> Thanks,
> Jeff Young
> Software Engineer
>
>
>
>



 
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
WebBrowser control flicker on modal window during resize. Rina Microsoft Dot NET Framework Forms 0 12th Nov 2008 06:33 PM
WebBrowser control and downlaod dialog Shawn B. Microsoft C# .NET 2 16th Apr 2008 12:57 AM
Making the WebBrowser ActiveX Control Modal =?Utf-8?B?ZWZhbmRhbmdv?= Microsoft Access Forms 0 6th Oct 2006 10:20 PM
WebBrowser control dialog box for local files hansen.mike@gmail.com Microsoft Dot NET Framework Forms 0 28th May 2006 08:53 AM
Webbrowser control, disable save dialog Henrik Microsoft Access Form Coding 1 5th Apr 2006 11:30 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:26 PM.