
Multithreading in Com Add in blocks Outlook Event Handlers
Sample code would be helpful in solving your problem. In general, all COM
Add-ins are in process to Outlook. You will only be able to piggyback on the
Outlook.exe process, and you cannot start a separate thread.
--
Randy Byrne, MVP - Outlook
http://www.microeye.com
Building Applications with Microsoft Outlook 2002 (MSPress - July 2001)
Building Applications with Microsoft Outlook 2000 (MSPress)
http://www.microeye.com/books
Micro Eye ZipOut
http://www.microeye.com/zipout
Quote:
> Hi
> Programs VB.net & Outlook 2000
> I am working on an Outlook Com Add In using multihreading to do some time
> intensive stuff. My problem is the following.
> I need to add some buttons with Eventhandles to the Outlook Toolbar. By
> pressing them some Functions in my programm should be called.
> That is working fine, till I am using a second thread. The thread is
> accessing Outlook with another Com Object called Outlook Redemtion. When
> this Com Object reads data from Outlook my Eventhandles do not work
> anylonger. If I set the Eventhandlers after I read the data the are still
> not working. I add the Eventhandlers in the OnConnection Method. For now
the
> only way to make my program work is not to exit the OnConnection Function
> till the thread is done with loading and terminated.
> Thanks for helping
> Markus