A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Tags: , , ,

Multithreaded Outlook 2007 Addin





 
 
Thread Tools Display Modes
  #1  
Old May 30th 07, 01:13 PM posted to microsoft.public.outlook.program_addins
tanutatu@hotmail.com
external usenet poster
 
Posts: 13
Default Multithreaded Outlook 2007 Addin

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

Ads
  #2  
Old May 31st 07, 07:21 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 1,574
Default Multithreaded Outlook 2007 Addin

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

wrote in message
oups.com...
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



  #3  
Old June 1st 07, 08:35 AM posted to microsoft.public.outlook.program_addins
tanutatu@hotmail.com
external usenet poster
 
Posts: 13
Default Multithreaded Outlook 2007 Addin

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"
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

wrote in message

oups.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 -



  #4  
Old June 1st 07, 07:31 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 1,574
Default Multithreaded Outlook 2007 Addin

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

wrote in message
ups.com...
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"
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

wrote in message

oups.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 -





 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Vista/Outlook 2007 - cannot replace Addin DLL Slava Barouline Add-ins for Outlook 0 May 22nd 07 01:58 AM
Outlook 2007 Addin - exception error Cresta Outlook - Using Forms 1 April 3rd 07 01:19 PM
Outlook 2007 / Addin with Ribbon Paul Liebrand Add-ins for Outlook 3 February 5th 07 10:12 PM
Problem with an Addin using IExchExtCommands and Outlook 2007 B2 T Christophe SAINCLIVIER Add-ins for Outlook 2 October 31st 06 11:38 AM
AddIn crashes Outlook 2007 Charles Sinclair Add-ins for Outlook 4 June 1st 06 07:43 PM


All times are GMT +1. The time now is 02:21 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Mortgage Loans - Personal Car Finance - Mortgage - Watch Anime Online - Free Advertising