Click here to Skip to main content
16,005,467 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How many handles leaked can hold a win2k OS? Pin
Roger Allen25-Mar-03 2:11
Roger Allen25-Mar-03 2:11 
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 
I've TRACEd the function calls and using the virtual functions in CHTMLView (OnBeforeNavigate...) I've seen that always the order in which the code is called is the next one:

OnbeforeNavigate2
OnDownloadBegin
OndownloadComplete
OnNavigateComplete

This code is only called when I load the first page using Navigate2/Navigate but when I write directly into that page that doesn't happens.

---------------------------

The most strange thing is that if I place an invisible CHTMLCtrl inside the main dialog (it is created at start and destroyed at finish) the handle leaking is not happening...

Now I free the document at the end: in the OnDestroy call, now I have placed this->GetHTMLDocument()->Release();.

---------------------------

How can I leak the body if I don't work with it? (it should be an internal CHTMLView thing, shouldn't it?)

---------------------------

How did you seen that I was leaking memory? (I'd like to know it in order to be able to search for a solution).

I've applied the modification that Microsoft tells to apply in an article pointed by Art Friesz, and I think the final result should be better, but I'd like to be able to scan for those leaks without help, could you tell me how did you noticed them, and how did you know what they are? (Semaphore, cs...)

Thaks a lot in advance.
AnswerRe: How many handles leaked can hold a win2k OS? Pin
Big Art25-Mar-03 7:12
Big Art25-Mar-03 7:12 
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 

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.