 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Joseph Misko Guest
|
Posted: Fri Nov 21, 2003 5:24 pm Post subject: Detect If OLE Server is Closed |
|
|
I am using a Variant and a call to CreateOleObject to start up and maintain
a reference to an external application. I use VarIsEmpty to test whether
the variable has been initialized or not, and this works pretty well.
However, once there has been a call to CreateOleObject, then VarIsEmpty
returns False even if the external application has been closed. Is there
another way to tell if the application is still available?
Thanks,
Joe
|
|
| Back to top |
|
 |
Deborah Pate (TeamB) Guest
|
Posted: Fri Nov 21, 2003 5:48 pm Post subject: Re: Detect If OLE Server is Closed |
|
|
<
Is there another way to tell if the application is still
available?
Not just from your variable. But if the application has a
quit event, you could trap that. Otherwise you could
perhaps use WaitForSingleObject in a thread (there's a
component to do that here:
http://www.djpate.freeserve.co.uk/AutoOffc.htm ) or just
use a timer and keep checking.
--
Deborah Pate (TeamB) http://delphi-jedi.org
TeamB don't see posts sent via Google or ISPs
Use the real Borland server: newsgroups.borland.com
http://www.borland.com/newsgroups/genl_faqs.html
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|