Skip to main content

[Migrated content. Thread originally posted on 18 August 2005]

Hi everyone,

I am working on an issue where the Outlook process stays active and won't go away.

If I simply send an e-mail via Outlook ActiveX, and Outlook isn't already running on the system, everything works okay, but the process remains active on the PC. In other words, if you look at the Task Manager in the processes tab, OUTLOOK.EXE appears. If you send multiple e-mails, it uses the same process, but I'd like to know how to make it go away.

After some research on the internet, I've noticed that this is a problem others have had, but I haven't found a way to make it work properly for me yet. Has anyone else run into this problem and figured out a way to resolve it?

I am destroying all of the handles I'm creating... all of the intermediate handles as well as the applicaiton handle...

Thanks,
Rob

[Migrated content. Thread originally posted on 18 August 2005]

Hi everyone,

I am working on an issue where the Outlook process stays active and won't go away.

If I simply send an e-mail via Outlook ActiveX, and Outlook isn't already running on the system, everything works okay, but the process remains active on the PC. In other words, if you look at the Task Manager in the processes tab, OUTLOOK.EXE appears. If you send multiple e-mails, it uses the same process, but I'd like to know how to make it go away.

After some research on the internet, I've noticed that this is a problem others have had, but I haven't found a way to make it work properly for me yet. Has anyone else run into this problem and figured out a way to resolve it?

I am destroying all of the handles I'm creating... all of the intermediate handles as well as the applicaiton handle...

Thanks,
Rob
It is definitely your handles. Are you destroying them in the exact opposite order of allocating them? You should also close your connection before destroying the final Application object.

Remember that you will not be allowed to destroy a class if it has a subclass running which depends on it (for instance a folder item active, then you cannot destroy the folders collection).

For comparision, look at one of the example from the API class on this, and see if you can find a difference.

[Migrated content. Thread originally posted on 18 August 2005]

Hi everyone,

I am working on an issue where the Outlook process stays active and won't go away.

If I simply send an e-mail via Outlook ActiveX, and Outlook isn't already running on the system, everything works okay, but the process remains active on the PC. In other words, if you look at the Task Manager in the processes tab, OUTLOOK.EXE appears. If you send multiple e-mails, it uses the same process, but I'd like to know how to make it go away.

After some research on the internet, I've noticed that this is a problem others have had, but I haven't found a way to make it work properly for me yet. Has anyone else run into this problem and figured out a way to resolve it?

I am destroying all of the handles I'm creating... all of the intermediate handles as well as the applicaiton handle...

Thanks,
Rob
Thanks, Gisle. I thought I checked this out, but I'll do it again after a bit of time and it might glare out at me. You've at least given me confidence of where my problem is.

Rob