Article View: borland.public.cppbuilder.internet.web
Article #1183Re: TCppWebBrowser: Program Crash when OnNewWindow2 is used.
From: Remy Lebeau (TeamB)
Date: Mon, 27 Jun 2005 06:55
Date: Mon, 27 Jun 2005 06:55
35 lines
2317 bytes
2317 bytes
"James O'Brien" <obrien@niscnet.com> wrote in message
news:42bce7c4$1@newsgroups.borland.com...
> The form containing secondary TCppWebBrowser control
> is a design-time form which is created automatically
That is not what I asked you. Just because the form's are auto-created does
not stop you from determining the order in which they are being freed.
> There is no explicit freeing of this form in the source code
Doesn't matter. The form still gets freed at program termination
nontheless.
> I'm only navigating to a blank screen ("about:blank")
It doesn't matter. DO NOT navigate at all which you are inside the
OnNewWindow2 event handler. TCppWebBrowser will navigate the interface
automatically AFTER the event handler exits. It is not the event handler's
responsibility to provide a pre-navigated interface.
> so when the form becomes visible, it doesn't show the previous contents.
Then don't display the form at all until the navigate is complete. You can
use the OnDocumentComplete or OnNavigateComplete2 event for that instead.
> Anyway, whether I navigate to "about:blank" or not the same crash
> occurs when the program exits.
You did not answer my question about the order of the forms being freed.
You are probably freeing something that other code is still dependant on.
Gambit
Technical Details
Message-ID:
<42bfa2db$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42bc7eb3$1@newsgroups.borland.com> <42bca597$1@newsgroups.borland.com> <42bce7c4$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,2f26de5706e6acb4 X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.web References: <42bc7eb3$1@newsgroups.borland.com> <42bca597$1@newsgroups.borland.com> <42bce7c4$1@newsgroups.borland.com> Subject: Re: TCppWebBrowser: Program Crash when OnNewWindow2 is used. Date: Sun, 26 Jun 2005 23:55:46 -0700 Lines: 37 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <42bfa2db$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1119855323 68.69.17.41 (26 Jun 2005 23:55:23 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail