GetActiveOleObject fails even though CreateOleObject succeeds lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- RedOctober · 2021-08-30 13:11 Can some one explain what I am doing wrong?  After I successfully open IE from Lazarus, then I try to access it again later in code, I will get a "RPC server unavailable" error message.  In an attempt to overcome that error, I decided to try and "find" the Ole object by using GetActiveOleObject().  But that fails too... even immediately after the successful creation of the Ole object. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i  uses  ... Windows, ComObj;...Browser := CreateOleObject('InternetExplorer.Application');  // <--- this line succeedsBrowser := GetActiveOleObject('InternetExplorer.Application');  // <--- this line fails...   Error displayed: Operation unavailable. ---------------------------------------------------------------------- Jurassic Pork · 2021-08-30 14:43 hello, may be a problem with the internet explorer com object.  With ms Word i have no problem with this code : Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TForm1.Button3Click(Sender: TObject);var msWord,sourDoc : OleVariant;beginmsWord := CreateOleObject('Word.Application');msWord := GetActiveOleObject('Word.Application');sourDoc := msWord.Documents.Open('d:\temp\monDoc.doc');msWord.Visible := true;end;maybe it is time to use other thing that internet explorer (end of life).  See this message Friendly, J.P ---------------------------------------------------------------------- loaded · 2021-09-09 08:44 Quote from: Jurassic Pork on August 30, 2021, 04:43:51 pmmay be a problem with the internet explorer com object.  No problem, this is a precaution taken for security reasons. You cannot connect to a session opened in Internet Explorer for security reasons, you can only access the session you started.