Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Wed, 12 Mar 2008 23:39:38 -0700 (PDT),    group: microsoft.public.platformsdk.mapi        back       


GetMsgStoresTable is returning message store of Previous Session   
Hi there,

When i close my MAPI application abruptly, or when it gets closed
abruptly.
The on the second run, i sometimes get the error like
"Object reference is not set to an instance of object."

When i debugged whats wrong, i found out that my GetMsgStoresTable was
returning multiple and previous session's message stores.
Even if i deleted my profile and created a new with the same name, it
still is returning multiple previous session's message stores.
I dont know how to check and handle such cases initially.
Any help will be highly appreciated.

Thank You
miztaken
date: Wed, 12 Mar 2008 23:39:38 -0700 (PDT)   author:   unknown

Re: GetMsgStoresTable is returning message store of Previous Session   
What do you see in MFCMAPI or OutlookSpy (IMAPISession | GetMsgStoresTable)?

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

 wrote in message 
news:56f85a8c-4de3-44bb-8f7a-425dd09a65d4@e10g2000prf.googlegroups.com...
> Hi there,
>
> When i close my MAPI application abruptly, or when it gets closed
> abruptly.
> The on the second run, i sometimes get the error like
> "Object reference is not set to an instance of object."
>
> When i debugged whats wrong, i found out that my GetMsgStoresTable was
> returning multiple and previous session's message stores.
> Even if i deleted my profile and created a new with the same name, it
> still is returning multiple previous session's message stores.
> I dont know how to check and handle such cases initially.
> Any help will be highly appreciated.
>
> Thank You
> miztaken
>
date: Thu, 13 Mar 2008 10:24:26 -0700   author:   Dmitry Streblechenko

Re: GetMsgStoresTable is returning message store of Previous Session   
Actually the behaviour is unpredictable as it seems to me.
I am deleting the profile before creating it.
This is giving me the result as i expected.
But i want to know how to gracefully deal with these sort of condition (i.e. 
when previously MAPI terminates abruptly and we get message store from 
previous session)

Thank You



"Dmitry Streblechenko"  wrote in message 
news:Oa7af7ShIHA.5824@TK2MSFTNGP03.phx.gbl...
> What do you see in MFCMAPI or OutlookSpy (IMAPISession | 
> GetMsgStoresTable)?
>
> Dmitry Streblechenko (MVP)
> http://www.dimastr.com/
> OutlookSpy  - Outlook, CDO
> and MAPI Developer Tool
>
>  wrote in message 
> news:56f85a8c-4de3-44bb-8f7a-425dd09a65d4@e10g2000prf.googlegroups.com...
>> Hi there,
>>
>> When i close my MAPI application abruptly, or when it gets closed
>> abruptly.
>> The on the second run, i sometimes get the error like
>> "Object reference is not set to an instance of object."
>>
>> When i debugged whats wrong, i found out that my GetMsgStoresTable was
>> returning multiple and previous session's message stores.
>> Even if i deleted my profile and created a new with the same name, it
>> still is returning multiple previous session's message stores.
>> I dont know how to check and handle such cases initially.
>> Any help will be highly appreciated.
>>
>> Thank You
>> miztaken
>>
>
>
date: Fri, 14 Mar 2008 14:53:48 +0545   author:   miztaken

Re: GetMsgStoresTable is returning message store of Previous Session   
I very much doubt that stores from a profile that was previously deleted are 
somehow added to a profile that yo uhave never explicitly modified.
I am 99.9% sure there is a problem in your code.
Do you have a code snippet that exhibits this problem?

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

"miztaken"  wrote in message 
news:ehVdLLbhIHA.3940@TK2MSFTNGP05.phx.gbl...
> Actually the behaviour is unpredictable as it seems to me.
> I am deleting the profile before creating it.
> This is giving me the result as i expected.
> But i want to know how to gracefully deal with these sort of condition 
> (i.e. when previously MAPI terminates abruptly and we get message store 
> from previous session)
>
> Thank You
>
>
>
> "Dmitry Streblechenko"  wrote in message 
> news:Oa7af7ShIHA.5824@TK2MSFTNGP03.phx.gbl...
>> What do you see in MFCMAPI or OutlookSpy (IMAPISession | 
>> GetMsgStoresTable)?
>>
>> Dmitry Streblechenko (MVP)
>> http://www.dimastr.com/
>> OutlookSpy  - Outlook, CDO
>> and MAPI Developer Tool
>>
>>  wrote in message 
>> news:56f85a8c-4de3-44bb-8f7a-425dd09a65d4@e10g2000prf.googlegroups.com...
>>> Hi there,
>>>
>>> When i close my MAPI application abruptly, or when it gets closed
>>> abruptly.
>>> The on the second run, i sometimes get the error like
>>> "Object reference is not set to an instance of object."
>>>
>>> When i debugged whats wrong, i found out that my GetMsgStoresTable was
>>> returning multiple and previous session's message stores.
>>> Even if i deleted my profile and created a new with the same name, it
>>> still is returning multiple previous session's message stores.
>>> I dont know how to check and handle such cases initially.
>>> Any help will be highly appreciated.
>>>
>>> Thank You
>>> miztaken
>>>
>>
>>
>
>
date: Sun, 16 Mar 2008 00:45:05 -0700   author:   Dmitry Streblechenko

Re: GetMsgStoresTable is returning message store of Previous Session   
Hi there,
I cannot regenerate the problem, or let me say the problem is not 
generating.
I must have modified the code.
Ya, that might have caused due to some misplaced coding.
Thank you dimitry.


"Dmitry Streblechenko"  wrote in message 
news:evcXxlzhIHA.4436@TK2MSFTNGP02.phx.gbl...
>I very much doubt that stores from a profile that was previously deleted 
>are somehow added to a profile that yo uhave never explicitly modified.
> I am 99.9% sure there is a problem in your code.
> Do you have a code snippet that exhibits this problem?
>
> Dmitry Streblechenko (MVP)
> http://www.dimastr.com/
> OutlookSpy  - Outlook, CDO
> and MAPI Developer Tool
>
> "miztaken"  wrote in message 
> news:ehVdLLbhIHA.3940@TK2MSFTNGP05.phx.gbl...
>> Actually the behaviour is unpredictable as it seems to me.
>> I am deleting the profile before creating it.
>> This is giving me the result as i expected.
>> But i want to know how to gracefully deal with these sort of condition 
>> (i.e. when previously MAPI terminates abruptly and we get message store 
>> from previous session)
>>
>> Thank You
>>
>>
>>
>> "Dmitry Streblechenko"  wrote in message 
>> news:Oa7af7ShIHA.5824@TK2MSFTNGP03.phx.gbl...
>>> What do you see in MFCMAPI or OutlookSpy (IMAPISession | 
>>> GetMsgStoresTable)?
>>>
>>> Dmitry Streblechenko (MVP)
>>> http://www.dimastr.com/
>>> OutlookSpy  - Outlook, CDO
>>> and MAPI Developer Tool
>>>
>>>  wrote in message 
>>> news:56f85a8c-4de3-44bb-8f7a-425dd09a65d4@e10g2000prf.googlegroups.com...
>>>> Hi there,
>>>>
>>>> When i close my MAPI application abruptly, or when it gets closed
>>>> abruptly.
>>>> The on the second run, i sometimes get the error like
>>>> "Object reference is not set to an instance of object."
>>>>
>>>> When i debugged whats wrong, i found out that my GetMsgStoresTable was
>>>> returning multiple and previous session's message stores.
>>>> Even if i deleted my profile and created a new with the same name, it
>>>> still is returning multiple previous session's message stores.
>>>> I dont know how to check and handle such cases initially.
>>>> Any help will be highly appreciated.
>>>>
>>>> Thank You
>>>> miztaken
>>>>
>>>
>>>
>>
>>
>
>
date: Mon, 17 Mar 2008 12:46:13 +0545   author:   miztaken

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us