dbTalk Databases Forums  

outlook.exe will not die!

comp.databases.xbase.fox comp.databases.xbase.fox


Discuss outlook.exe will not die! in the comp.databases.xbase.fox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
wayne dooley
 
Posts: n/a

Default outlook.exe will not die! - 04-29-2006 , 10:07 AM






Hi

At my company we use Outlook.Application quite a bit to send message. I
have looked at previous posts here as the the correct way to send email
messages uing Outlook. What I can't seem to get past is making the process
outlook.exe go away after quit() is issued. I am releasing the Oulook
object after quit. If I do the simple steps below on several different
machines, I get the same results - outlook.exe still shows up in Task
Manager after it's all done

* Start by looking in Task Manager to make sure outlook.exe is not already
there; kill it if it is

oo = CreateObject("Outlook.Application')
wait window timeout 5 'Stand by'
oo.quit()
wait window timeout 5 'Stand by'
oo = .null.
wait clear

*should" work, right?

After I do these steps then look in in Task Manager, there is outlook.exe.
Note that if I then try this

loOutLook = GetObject(,"Outlook.Application")

....I get "OLE error: Operation unavailble"

So it appears I have a stray process that I cannot kill and cannot reattach
to. I am guessing Outlook is asking for a response or wating for some
event, but we can't see that, so it refuses to die.

I am heading for CDO anyway, it has some advantages, but once in a while
Outlook would be nice, e.g. if all emails are within the company and I want
to user resolve() to validate email addresses.

Help! How can I kill it, or at lease reattach to it?

thanks
wayne



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.