🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.web
1 messages
1 total messages Started by Mark Jacobs Fri, 19 May 2006 12:46
EInvalid Op and then Program exits
#608
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads