🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #1181

Re: TCppWebBrowser: Program Crash when OnNewWindow2 is used.

#1181
From: James O'Brien
Date: Sat, 25 Jun 2005 05:12
29 lines
2040 bytes
> Is the secondary form being freed before or after the form that contains
the
> main TCppWebBrowser?
>

The form containing secondary TCppWebBrowser control  is a design-time form
which is created
automatically with  the following call:

                 Application->CreateForm(__classid(TBrowseWin), &BrowseWin);

There is no explicit freeing of this form in the source code; at least
nothing I've written.  It occurs in what ever default
order is applied do design-time forms.


> >    BrowseWin->ShowHTMLPage(&A, 0, 0);
>
> You are not supposed to be navigating the new browser window inside the
> OnNewWindow2 event.  TCppWebBrowser handles that internally after the
event
> handler exits.  You should be providing a fresh interface to the ppDisp
> parameter.

I'm only navigating to a blank screen ("about:blank") so when the form
becomes visible, it doesn't show the previous contents.
Anyway, whether I navigate to "about:blank" or not the same crash occurs
when the program exits.
Technical Details
Message-ID: <42bce7c4$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!news.maxwell.syr.edu!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42bc7eb3$1@newsgroups.borland.com> <42bca597$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
Reply-To: "James O'Brien" <obrien@niscnet.com>
From: "James O'Brien" <obrien@niscnet.com>
Newsgroups: borland.public.cppbuilder.internet.web
References: <42bc7eb3$1@newsgroups.borland.com> <42bca597$1@newsgroups.borland.com>
Subject: Re: TCppWebBrowser: Program Crash when OnNewWindow2 is used.
Date: Sat, 25 Jun 2005 01:12:36 -0400
Lines: 31
Organization: NISC
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
NNTP-Posting-Host: 69.171.99.154
Message-ID: <42bce7c4$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1119676356 69.171.99.154 (24 Jun 2005 22:12:36 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!news.maxwell.syr.edu!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail