BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Detect If OLE Server is Closed

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation
View previous topic :: View next topic  
Author Message
Joseph Misko
Guest





PostPosted: Fri Nov 21, 2003 5:24 pm    Post subject: Detect If OLE Server is Closed Reply with quote



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





PostPosted: Fri Nov 21, 2003 5:48 pm    Post subject: Re: Detect If OLE Server is Closed Reply with quote



< Is there another way to tell if the application is still
available?
Quote:


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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.