LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.dotnet.framework.interop,microsoft.public.excel.programming
Tom Tom is offline
external usenet poster
 
Posts: 2
Default Office Add-ins and threads

Hi,

Is it possible to safely run threads in a VSTO Excel 2003 Add-in?

I run my thread as a STA thread like this:

thread = new System.Threading.Thread(TestThread);
thread.IsBackground = true;
thread.Name = "Test thread";

thread.SetApartmentState(System.Threading.Apartmen tState.STA);

I started to get "DisconnectedContext was detected" warnings from the
MDA right hafter I added a class library project to my add-in
solution.

Is there some magic trick to fix this or do I have to forget about
using threads and start calling Application.DoEvents every now and
then?

Br,
Tom

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
own threads Yossi evenzur[_2_] Charts and Charting in Excel 5 February 18th 10 09:45 AM
how do i find my threads dr chuck Excel Programming 2 June 19th 06 01:39 AM
Sorry for the 3 threads! My bad... madhead4000 Excel Worksheet Functions 0 April 3rd 06 09:14 PM
Threads ... possible in VBA SkylineGTR Excel Programming 3 November 14th 05 04:15 AM
a way to get all the threads srinivasan Excel Discussion (Misc queries) 4 August 22nd 05 12:44 PM


All times are GMT +1. The time now is 10:58 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"