Article View: borland.public.cppbuilder.internet.web
Article #1180Re: TCppWebBrowser: Program Crash when OnNewWindow2 is used.
From: Remy Lebeau (TeamB)
Date: Sat, 25 Jun 2005 00:30
Date: Sat, 25 Jun 2005 00:30
20 lines
1502 bytes
1502 bytes
"James O'Brien" <obrien@niscnet.com> wrote in message news:42bc7eb3$1@newsgroups.borland.com... > when the main program exits, it crashes during call to > destructor of form containing secondary TCppWebBrowser > control. Is the secondary form being freed before or after the form that contains the main TCppWebBrowser? > 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. Gambit
Technical Details
Message-ID:
<42bca597$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<42bc7eb3$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> Subject: Re: TCppWebBrowser: Program Crash when OnNewWindow2 is used. Date: Fri, 24 Jun 2005 17:30:22 -0700 Lines: 22 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: <42bca597$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1119659415 68.69.17.41 (24 Jun 2005 17:30:15 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail