🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TCppWebrowser xml combination problems

#636
From: Danny Abbenhuis
Date: Thu, 08 Jun 2006 05:43
69 lines
3720 bytes
Remy, Thanxs for helping,

I have found some things on the internet regarding msxml3 problems, it 
states that whenever the internet explorer is closed after loading an xml 
file
the internet explorer might crash. This because it tries to free xml 
elements that do not exist anymore. This seems to be the problem in my 
application, since
the cppwebbrowser uses microsofts internet explorer.
I have applied the hotfixes for this problem, but that didn't help me out, 
but knowing what might be the problem, I changed my application in that the
form with the browser remains active without actually closing the 
cppwebbrowser. After doing this evrything runs smoothly.




"Danny Abbenhuis" <d_j_daan@hotmail.com> schreef in bericht 
news:447eadbe@newsgroups.borland.com...
> I'm experiencing some problems using the TCppWebrowser component:
>
> Request:
>
> I'm writing a program that does some report printing on startup. It used 
> some tables to create data in an xml file, and
> one by one needs to print this data. For this I've used an TCppWebBrowser 
> component to load the document
> and in the ondocument complete I print the document and close the foprm on 
> which it is shown. During startup a undefined number
> of documents need to be printed.
>
>
> Experience:
>
> Written the code, i have seen several weird things:
> - Sometime the application simply stops, and is gone
> - Sometime an abnormal program termination occures
> - Sometimes everything seems to be normal, the application finnishes 
> printing, and continues
>  with the normal user interface, but when at a later time closing the 
> application al kind of weird errors
>  occures (like unable to write to memmory)
> - Using aqtime (because codeguard doesn't see any problems) it showed that 
> there are lots of
>  exceptions in calling the msxml3 dll file which probabbly is loaded. 
> Possibly this is only the case
>  in loading an xml file instead of a other standard url.
>
> Testing:
> To be able to test the situation I created a very simple program:
> - i use the following code behind a button:
>  CppWebBrowser1->Navigate(WideString("C:\\OwlSupplyReport.xml"));
> - to automattically print the document when finnished :
>  void __fastcall TForm1::CppWebBrowser1DocumentComplete(TObject *Sender,
>   LPDISPATCH pDisp, Variant *URL)
> {
>  CppWebBrowser1->ExecWB( OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER, 0, 
> 0);
>  CppWebBrowser1->Stop();
> }
> When pushing the button repeatedly, the application experiences the same 
> problems as the original application
>
> Does anyone know what might be the problem, is it a bug in my own code, a 
> bug in the component, or a bug in the xml stuff.
>
>
>
> 
Technical Details
Message-ID: <4487b987$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <447eadbe@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,63922eaac5b0c033
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Danny Abbenhuis" <d_j_daan@hotmail.com>
From: "Danny Abbenhuis" <d_j_daan@hotmail.com>
Newsgroups: borland.public.cppbuilder.internet.web
References: <447eadbe@newsgroups.borland.com>
Subject: Re: TCppWebrowser xml combination problems
Date: Thu, 8 Jun 2006 07:43:44 +0200
Lines: 71
Organization: Moba B.V.
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 212.142.8.15
Message-ID: <4487b987$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1149745543 212.142.8.15 (7 Jun 2006 22:45:43 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail