🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

EInvalid Op and then Program exits

#608
From: Mark Jacobs
Date: Fri, 19 May 2006 12:46
28 lines
2088 bytes
I have written a browser based on the TCppWebBrowser component in BCB5 SP1 (it 
is available for free donload at http://www.jacobsm.com/mjsoft.htm#brwsr ). 
On certain pages (I am not sure but I think it is something to do with 
embedded flash animations), any user interaction with the page often produces 
an EInvalidOp message with as single OK button, which closes the browser when 
pressed. Has anyone got any ideas of why this might be happening?

//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
  : TForm(Owner)
{
  OleInitialize(NULL);
}
//---------------------------------------------------------------------------
void __fastcall TForm1::FormCloseQuery(TObject *Sender, bool &CanClose)
{
  CppWebBrowser1->Stop(); OleUninitialize();
}
//---------------------------------------------------------------------------

I thought the above would tide these embeds over so that they worked properly. 
It certainly fixes up copy and paste operations. Is Flash different? Am I on 
the wrong track here?
-- 
�
Mark Jacobs
DK Computing
http://www.dkcomputing.co.uk
Technical Details
Message-ID: <446dbd65@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,e7d4704cf1763195,start
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII
From: "Mark Jacobs" <http://www.jacobsm.com/mjmsg?Borland%20Newsgroup>
Newsgroups: borland.public.cppbuilder.internet.web
Subject: EInvalid Op and then Program exits
Date: Fri, 19 May 2006 13:46:15 +0100
Lines: 30
Organization: DK Computing
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; Original
NNTP-Posting-Host: 81.144.157.8
Message-ID: <446dbd65@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1148042597 81.144.157.8 (19 May 2006 05:43:17 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail