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 |