Click here to Skip to main content
15,916,527 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How many handles leaked can hold a win2k OS? Pin
Brian Shifrin25-Mar-03 2:44
Brian Shifrin25-Mar-03 2:44 
GeneralRe: How many handles leaked can hold a win2k OS? Pin
Joan M25-Mar-03 2:51
professionalJoan M25-Mar-03 2:51 
GeneralRe: How many handles leaked can hold a win2k OS? Pin
Joan M25-Mar-03 3:02
professionalJoan M25-Mar-03 3:02 
GeneralRe: How many handles leaked can hold a win2k OS? Pin
Brian Shifrin25-Mar-03 4:46
Brian Shifrin25-Mar-03 4:46 
GeneralRe: How many handles leaked can hold a win2k OS? Pin
Brian Shifrin25-Mar-03 4:50
Brian Shifrin25-Mar-03 4:50 
GeneralRe: How many handles leaked can hold a win2k OS? Pin
Joan M25-Mar-03 9:26
professionalJoan M25-Mar-03 9:26 
GeneralRe: How many handles leaked can hold a win2k OS? Pin
Joan M26-Mar-03 23:19
professionalJoan M26-Mar-03 23:19 
AnswerRe: How many handles leaked can hold a win2k OS? Pin
Big Art25-Mar-03 7:12
Big Art25-Mar-03 7:12 
Hi Joan,

Don't know if I can help you but your problem reminds me of something I went through with the CHtmlView class about 3 years ago concerning a documented resource leak. I am not sure if it still applies today or not.

Art

Here is the extracted Dr GUI problem:

/////////////////////////////
Start MSDN documentation:
/////////////////////////////

Extracted from Dr. GUI #49

Dear Dr. GUI:
Our app makes use of the Internet Explorer WebBrowser control and MFC's CHtmlView to add custom status information and user-defined views. The app is a process monitoring program that runs scripts that we call recipes. If one of these recipes continually chains to other recipes then we cannot run for more than a few hours before the system becomes unstable because of some kind of resource problem.

I have written a small MFC AppWizard app (attached) that uses the CHtmlView and, after a short time, closes the currently active document and creates a new one. If I run this app overnight then the system becomes pretty unstable and this and other apps start doing weird things!

I have run the app and used the Windows NT performance monitor to look at what's leaking and it seems that the major problem is that the Pool Paged Bytes are getting eaten at quite a rate. Am I doing something wrong or is this a bug with Internet Explorer? If so, how do I report it and hopefully get it fixed?

My system is running NT4 SP5 with IE5 and has 128MB RAM. We also see the problem on Windows 98 but haven't tested with Windows 95.

Thanks in advance.

Matt Stephens

Dr. GUI replies:
Thanks, but I'll pass on that cake for now. I don't think that I can take it, 'cause it took so long to bake it. But soon we'll get your recipes running again. (But it won't be as nice a solution as the good doctor would like.)

Actually, according to our omniscient support engineers here in MacArthur Park, the problem you describe is indeed a known bug in Internet Explorer. We're working on fixing it in a future version of Microsoft Internet Explorer or an Internet Explorer service pack. For the time being, there is not much of a workaround. The best thing to do is to shut down your application periodically to free those resources. Dr. GUI is sorry he doesn't have better news.

Take a look at this Knowledge Base article for some more information:

Q241750: BUG: CHtmlView Leaks Memory by Not Releasing BSTRs in Several Methods

////////////////
End MSDN Documentation
////////////////
GeneralRe: How many handles leaked can hold a win2k OS? Pin
Joan M25-Mar-03 9:38
professionalJoan M25-Mar-03 9:38 
GeneralRe: How many handles leaked can hold a win2k OS? Pin
Joan M26-Mar-03 23:24
professionalJoan M26-Mar-03 23:24 
GeneralGDI performance Pin
Raphael Kindt24-Mar-03 21:13
Raphael Kindt24-Mar-03 21:13 
QuestionHow to write programt to create folder? Pin
ooosawaddee324-Mar-03 20:03
ooosawaddee324-Mar-03 20:03 
AnswerRe: How to write programt to create folder? Pin
Rickard Andersson2024-Mar-03 21:43
Rickard Andersson2024-Mar-03 21:43 
GeneralRe: How to write programt to create folder? Pin
Simon.W25-Mar-03 0:35
Simon.W25-Mar-03 0:35 
GeneralCTreeCtrl with icons Pin
rohit.dhamija24-Mar-03 19:24
rohit.dhamija24-Mar-03 19:24 
GeneralRe: CTreeCtrl with icons Pin
Tibor Blazko24-Mar-03 19:36
Tibor Blazko24-Mar-03 19:36 
GeneralRe: CTreeCtrl with icons Pin
jeremysay24-Mar-03 22:39
jeremysay24-Mar-03 22:39 
GeneralQuadratic equation Pin
ROK_RShadow24-Mar-03 19:01
ROK_RShadow24-Mar-03 19:01 
GeneralRe: Quadratic equation Pin
Roger Wright24-Mar-03 20:00
professionalRoger Wright24-Mar-03 20:00 
GeneralRe: Quadratic equation Pin
ROK_RShadow24-Mar-03 20:35
ROK_RShadow24-Mar-03 20:35 
GeneralRe: Quadratic equation Pin
Roger Wright24-Mar-03 21:17
professionalRoger Wright24-Mar-03 21:17 
GeneralRe: Quadratic equation Pin
ROK_RShadow24-Mar-03 21:28
ROK_RShadow24-Mar-03 21:28 
GeneralRe: Quadratic equation Pin
Roger Wright24-Mar-03 22:07
professionalRoger Wright24-Mar-03 22:07 
QuestionIs there a function to convert a CString value to an integer? Pin
julych24-Mar-03 18:30
julych24-Mar-03 18:30 
AnswerRe: Is there a function to convert a CString value to an integer? Pin
Michael Dunn24-Mar-03 19:10
sitebuilderMichael Dunn24-Mar-03 19:10 

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.