How to close one instance of an OLE application without closing its RPC server along with it
Posted on 2002-05-01
I have developed an application in Delphi 5, which reads information from a MS WORD document and parses it into HTML. I have used OLE technology to achieve this. The problem is that if I start another instance of MS Word form the start menu while I am running my application and close the MS Word (application that i started from the start menu) the RPC server instance also gets destroyed and everytime I want to refresh the details in my Delphi application an error message appears saying "RPC Server not found" .
How to overcome this problem ? I havetried using threads etc. Please suggest me something .
Thanks and regards