We have an internal application for dealing with emails that come in to our Outlook Inbox. It accesses Outlook via connection to the "Outlook.Application" OLEObject, and also uses the Redemption SafeMailItem OLEObject to avoid popups about being allowed to send emails etc.
I'm finding that even though I'm apparently successfully disconnecting and destroying both objects when the program exits, an extra Outlook process is left running, named "MMGA Server (32-bit)". If I keep running and exiting the app, another Outlook process like that is left running each time. Eventually that causes problems.
I can't figure out any way to avoid this. Any thoughts?
One thing I thought of is calling ioleOutlook.Quit(), but that closes the actual Outlook window, that I have no desire to close. (And I don't know whether it even solves the problem.)