NavigateComplete2 -> DocumentComplete confusion, not well formed



Hello all,

I am monitoring a web site with multiple frames. To find out if the
whole page is loaded I use NavigateComplete2 (where I store the disp of
the first frame) and DocumentComplete (where I check the current disp
and if it equals the stored one I know it is the top frame).

This used to work correctly for months (always monitoring the same web
site with my application).

Now my application stopped working and I found out that the disp
pointers do not match any longer.

Please note that the disp 0x00c61120 never arrives in Document
Complete, but disp 0x00cf8d50 appears in DocumentComplete BEFORE
appearing in NavigateComplete.

How could this happen ?
Any idea, maybe my approach of detecting the top frame is wrong.
Do I have a wrong understanding of the navigate - complete mechanism ?

-------------------
Problems are (see calling sequence below)
1.) appears in NavigateComplete2, but never arrives in DocumentComplete
3.) appears in NavigateComplete2, but never arrives in DocumentComplete
5.) appears in Document Complete before NavogateComplete

here is the sequence as observed using debugger and breakpoints:

NavigateComplete2
1.) 0x00c61120 --> PROBLEM, this is stored, should be the top frame,
but will never be seen again in DocumentComplete
2.) 0x0cec2fa0 --> OK, DocumentComplete will follow subsequently
3.) 0x0cecdd10 --> PROBLEM, will never appear in Document Complete

DocumentComplete
4.) 0x0cec2fa0 --> OK, this one seems to be the second frame
5.) 0x00cf8d50 --> PROBLEM, did not appear in NavigateComplete2 by now

NavigateComplete2
6.) 0x00cf8d50 --> PROBLEM, appears AFTER Document Complete ???
7.) 0x0cece370 --> OK, DocumentComplete will follow subsequently

DocumentComplete
8.) 0x0cece370 --> ok, matches


many thanks in advance
mike

.



Relevant Pages

  • AxSHDocVw.AxWebBrowser events
    ... the documentcomplete and NavigateComplete2 in AxSHDocVw.AxWebBrowser all ... seem to fire per frame. ... in some other implementation there is something like navigatecomplete2. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: IWebBrowser2, frames and DocumentComplete
    ... number of DocumentComplete, however, number of NavigateComplete2 is ... "I've just seen a navigation in frame B; I know that frame C is going to ... But which is the last DocumentComplete Event? ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: Problem with HTMLDocumentEvents on Gmail
    ... I'm interested in OnClick event ... HtmlDocumentEvent object. ... Events don't bubble across frame boundaries. ... DocumentComplete and similar events. ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: How to detect if a web page is "fully loaded"?
    ... > OnDocumentComplete will be called multiple times. ... On a page with frames or iframes, DocumentComplete is fired by each ... frame as well as a frameset. ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: Help needed: ie.busy/readystate loading frame
    ... one for the web page and thus there is only one DocumentComplete ... each frame and thus one DocumentComplete event for each frame. ... event handler will run once for every time the DocumentComplete event ... Sub event_DocumentComplete ...
    (microsoft.public.scripting.vbscript)