events in OOM not being called if the advise is done in another thread.

J

juan

Hi!
I've written an outlook addin using ATL. In the
_IDTExtensibility2:OnConnection
event I traverse all folders and I sink an event for all of them to see
whether
new folders are created, and whether mails are added to them...

Problem is that users may have thousands of folders and in this case of
course
there will be a big delay at startup.

So what I did was to launch another thread and I do the sink logic in
this other thread...
I didn't get any error when calling the DispEventAdvise function... but
my function
is never called!
If I do the same logic from the original thread, it works....

Any idea?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top