Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Newsgroup Archive
Microsoft Office
Developer Add-ins
Outlook plugin c# - Thread keeps outlook.exe process in Task Manag
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="TrinityPete, post: 6920277"] Hi, I have written an outlook plugin that basically loads up lots of Contacts from an ERP system. This works fine appart from the fact that it locks the outlook UI. Therefore, I decided to spin up another thread to perform the update. Heres the odd thing - Even through debugger, I can see that the thread I spin up completes is work and then the thread.IsAlive returns false but then for some reason after exiting the outlook application. Outlook.exe still appears in the task manager and the plugin dll is locked as it is in use by another process. Kill the outlook .exe process and the lock on the dll is removed. This suggests that the thread is not cleaning up properly, and there must be some remnants of the thread remaining. I have tried thread.abort() etc etc but this process still lies around until it is manually killed. My best guess is that there is something odd happening with the com interop but I havent a clue what........ Anyone got any ideas? They will all be greatfully received. Thanks. Pete. [/QUOTE]
Verification
Post reply
Forums
Archive
Newsgroup Archive
Microsoft Office
Developer Add-ins
Outlook plugin c# - Thread keeps outlook.exe process in Task Manag
Top