T
TrinityPete
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.
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.