Article View: borland.public.cppbuilder.internet.web
Article #1337Re: TCppWebBrowser locks up
From: Albert Wiersch
Date: Tue, 22 Feb 2005 17:17
Date: Tue, 22 Feb 2005 17:17
44 lines
2290 bytes
2290 bytes
Oops. I found the problem. The situation I mentioned causes an infinite loop
in the while (1) loop. I think I can fix that. :-)
--
Albert Wiersch
http://www.htmlvalidator.com/
"Albert Wiersch" <mrinternetnewsborland@wiersch.com> wrote in message
news:421b660a$1@newsgroups.borland.com...
>
> while (1) {
> HRESULT hr2=WB->Document->QueryInterface(IID_IPersistFile,(void
> **)(&IpersFile));
> if ( (SUCCEEDED(hr2)) && (IpersFile) ) {
> HRESULT
> saveresult=IpersFile->Save(StringToOleStr(p->vol->WBsourcefilename.getString()),false);
>
> if (saveresult==S_OK) { // 0 is success, non-zero is failure
> savesuccess=TRUE; break;
> }
> else {
> SetStatusBarText("Failed to save web browser source HTML."); // new
> 2004-02-09
> if (IpersFile) {
> IpersFile->Release(); IpersFile=NULL;
> }
> WBRefreshBtnClick(Sender); // workaround for problem where pages
> aren't saved successfully (???)
> return retval;
> }
> }
> }
> }
> if (IpersFile) {
> IpersFile->Release(); IpersFile=NULL;
> }
> }
> } catch (...) { }
>
> return retval;
> }
> //---------------------------------------------------------------------------
Technical Details
Message-ID:
<421b68fa$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!newsprint.newsread.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<421a69ea$1@newsgroups.borland.com> <421b20d1@newsgroups.borland.com> <421b660a$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,4928ef008d628065 X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Albert Wiersch" <mrinternetnewsborland@wiersch.com> Newsgroups: borland.public.cppbuilder.internet.web References: <421a69ea$1@newsgroups.borland.com> <421b20d1@newsgroups.borland.com> <421b660a$1@newsgroups.borland.com> Subject: Re: TCppWebBrowser locks up Date: Tue, 22 Feb 2005 11:17:14 -0600 Lines: 46 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2527 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 70.244.73.182 Message-ID: <421b68fa$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1109092602 70.244.73.182 (22 Feb 2005 09:16:42 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!newsprint.newsread.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail