Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Missing Message Store

4 views
Skip to first unread message

Pete Maclean

unread,
May 12, 2010, 11:39:50 AM5/12/10
to
I have a MAPI client application that logs on to a profile with two PSTs
configured then calls GetMsgStoresTable expecting to find an entry for each.
Sometimes both are there but sometimes only one is. I have seen this
problem with all Exchange MAPI versions since 6.5.8069.

My first idea to fix this was to call HrDispatchNotifications. That, as
documented in Stephen Griffin's blog, resolves a remarkably similar issue in
a different context (Public Folders not appearing in the Stores Table with
Outlook 2007's MAPI). I had also faced that PF issue and found
HrDispatchNotifications to be a solid way around it. But, in this new
scenario, it does not help.

There are a couple of things I can do to reduce the incidence of the
problem, for example working through the table rows a couple of times -- it
is a dynamic table and sometimes the second entry pops into existence. But
I have come up with nothing that reliably produces a table with both entries
present.

Has anyone else seen this problem? Any ideas of what to do about it?

Pete Maclean

Pete Maclean

unread,
May 13, 2010, 12:27:19 PM5/13/10
to
I believe I have solved this problem. It turns out that calling
HrDispatchNotifications does fix it but only if MAPIInitialize is called
with the MAPI_MULTITHREAD_NOTIFICATIONS flag, which my program originally
had not done.

Pete Maclean

"Pete Maclean" <pe...@maclean.com> wrote in message
news:OCTJfle8...@TK2MSFTNGP02.phx.gbl...

Pete Maclean

unread,
May 14, 2010, 1:33:43 PM5/14/10
to
I jumped to a too hasty conclusion. In the initial testing I did, which was
limited in scope, the change to MAPIInitialize made the program work
reliably. In more extensive testing performed by QA it still fails about
50% of the time with the symptom being that HrDispatchNotifications hangs.

Pete Maclean

"Pete Maclean" <pe...@maclean.com> wrote in message

news:ulZiskr8...@TK2MSFTNGP04.phx.gbl...

0 new messages