Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: Multithreaded Outlook 2007 Addin

Geek News

Multithreaded Outlook 2007 Addin
tanutatu[ at ]hotmail.com 5/30/2007 11:13:22 AM
Hi

We are using OOM 2007, VSTO SE to create Outlook 2007 addin.

We observed that after adding threads to our addin, Outlook sometimes
crashes.
Is OOM 2007 threadsafe?

We have passed ThisAddin.Application object in all the threads that
have been created.
Can this be the reason for the crash?

Regards
Tanushree

Re: Multithreaded Outlook 2007 Addin
"Dmitry Streblechenko" <dmitry[ at ]dimastr.com> 5/31/2007 5:21:02 PM
What exactly do you do in these threads? Do you know which method crashes?

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

<tanutatu[ at ]hotmail.com> wrote in message
news:1180523602.557242.297090[ at ]a26g2000pre.googlegroups.com...
[Quoted Text]
> Hi
>
> We are using OOM 2007, VSTO SE to create Outlook 2007 addin.
>
> We observed that after adding threads to our addin, Outlook sometimes
> crashes.
> Is OOM 2007 threadsafe?
>
> We have passed ThisAddin.Application object in all the threads that
> have been created.
> Can this be the reason for the crash?
>
> Regards
> Tanushree
>


Re: Multithreaded Outlook 2007 Addin
tanutatu[ at ]hotmail.com 6/1/2007 6:35:22 AM
Hi Dmitry

Thanks for your reply.
In these threads we are searching the Outlook data files using WDS and
showing the search results in a folder home page .

There is no particular method that seems to be crashing.
This crash generally occurs when Outlook is closed.

Another query I had was : Is Outlook Object Model 2007 thread
safe????

Thanks in advance.

Regards
Tanushree



On May 31, 10:21 pm, "Dmitry Streblechenko" <dmi...[ at ]dimastr.com>
wrote:
[Quoted Text]
> What exactly do you do in these threads? Do you know which method crashes?
>
> Dmitry Streblechenko (MVP)http://www.dimastr.com/
> OutlookSpy -Outlook, CDO
> and MAPI Developer Tool
>
> <tanut...[ at ]hotmail.com> wrote in message
>
> news:1180523602.557242.297090[ at ]a26g2000pre.googlegroups.com...
>
>
>
> > Hi
>
> > We are using OOM 2007, VSTO SE to createOutlook2007 addin.
>
> > We observed that after adding threads to our addin,Outlooksometimes
> > crashes.
> > Is OOM 2007 threadsafe?
>
> > We have passed ThisAddin.Application object in all the threads that
> > have been created.
> > Can this be the reason for the crash?
>
> > Regards
> > Tanushree- Hide quoted text -
>
> - Show quoted text -


Re: Multithreaded Outlook 2007 Addin
"Dmitry Streblechenko" <dmitry[ at ]dimastr.com> 6/1/2007 5:31:30 PM
All Outlook objects are marked as apartment threaded, hence thay must be
marshalled to the thread used to retrieve them.
Does the crash occur while one of your secondary threads is still running?
Do you trap Application.Quit event in Outlook and wait for your threads to
finish before you let Outlook proceed with the shutdown?

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

<tanutatu[ at ]hotmail.com> wrote in message
news:1180679722.134641.23810[ at ]g37g2000prf.googlegroups.com...
[Quoted Text]
> Hi Dmitry
>
> Thanks for your reply.
> In these threads we are searching the Outlook data files using WDS and
> showing the search results in a folder home page .
>
> There is no particular method that seems to be crashing.
> This crash generally occurs when Outlook is closed.
>
> Another query I had was : Is Outlook Object Model 2007 thread
> safe????
>
> Thanks in advance.
>
> Regards
> Tanushree
>
>
>
> On May 31, 10:21 pm, "Dmitry Streblechenko" <dmi...[ at ]dimastr.com>
> wrote:
>> What exactly do you do in these threads? Do you know which method
>> crashes?
>>
>> Dmitry Streblechenko (MVP)http://www.dimastr.com/
>> OutlookSpy -Outlook, CDO
>> and MAPI Developer Tool
>>
>> <tanut...[ at ]hotmail.com> wrote in message
>>
>> news:1180523602.557242.297090[ at ]a26g2000pre.googlegroups.com...
>>
>>
>>
>> > Hi
>>
>> > We are using OOM 2007, VSTO SE to createOutlook2007 addin.
>>
>> > We observed that after adding threads to our addin,Outlooksometimes
>> > crashes.
>> > Is OOM 2007 threadsafe?
>>
>> > We have passed ThisAddin.Application object in all the threads that
>> > have been created.
>> > Can this be the reason for the crash?
>>
>> > Regards
>> > Tanushree- Hide quoted text -
>>
>> - Show quoted text -
>
>


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net