Loosing Explorer.FolderSwitch notifications

  • Thread starter Thread starter Simon Smith
  • Start date Start date
S

Simon Smith

Hi all -

I have an outlook add-in which monitors the explorer.FolderSwitch
event.

Every now and then I stop receiving these events.

My addin calls off to a new thread to collect posts from an external
source and add them to a set of folders. This bit works fine, but
loosing the FolderSwitch event seems to always occur whilst this
thread is processing. However, it doesn't happen at any particular
point during the thread's processing - I log to a file at many many
places during the processing and there seems to be no common action
which preceeds loosing the event.

Has ant one any advice on this? If someone knows why the events are
being lost - brill! If not, any suggestions on areas I can look at
would be great.


Thanks -
 
On Sun, 21 Mar 2004 15:09:16 +0000 in article
<[email protected]> in
microsoft.public.outlook.program_addins , Simon Smith
Hi all -

I have an outlook add-in which monitors the explorer.FolderSwitch
event.

Every now and then I stop receiving these events.

My addin calls off to a new thread to collect posts from an external
source and add them to a set of folders. This bit works fine, but
loosing the FolderSwitch event seems to always occur whilst this
thread is processing. However, it doesn't happen at any particular
point during the thread's processing - I log to a file at many many
places during the processing and there seems to be no common action
which preceeds loosing the event.

Found my own answer - sorry about that; a different Google search
phrase turned up the suggestion that I keep a reference to the
explorer I am hooked to around instead of letting it go out of scope
after hooking up to the currsnt ActiveExplorer(). This worked (so
far!).

Thanks.
 
Back
Top