register Folders & Items events from a secondary thread

J

Jerry Gao

I have a C++ COM Addin that uses a thread to register Folders and Items
event handlers. After the registeration completes, the thread goes down.

However, the event handlers registered never get called. If I switch the
registeration in the main thread, the event handlers get called
successfully.

Wondering if there is a way to have the event handlers get called if they
are registered from a different thread. Or the behavior is by design and
there is no way to do this.
 
D

Dmitry Streblechenko \(MVP\)

Why do you shut the threads down? What exactly is the point? I would imagine
you want to run the event handlers on those threads, not just call Advise?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Top