Quantcast
Viewing latest article 4
Browse Latest Browse All 109

Bulletproof Exiting Outlook (and not crashing)

In building an Outlook integration, I try to exit Outlook this way:



Marshal.ReleaseComObject(objOutlook)
objOutlook = Nothing



Before I did this, sometimes this code would not execute, and Outlook would
then get a bit messed up. I would have to load Outlook and wait for it to
repair and/or shut down Outlook in the Task Manager. I don't want this ever
to happen to a user in a commercial application. Is the above code the best
way to handle this scenario. I want to bulletproof an...

Bulletproof Exiting Outlook (and not crashing)

Viewing latest article 4
Browse Latest Browse All 109

Trending Articles