Excel not closing if I start Thread

B

Brent Rogers

Hello

I have written an C# Excel add on displays a dialog, and if the user clicks
a particular button will start up a 2nd thread. This thread only runs for a
few seconds. However once I run the 2nd thread and exit the worksehet,
Excel itself stays around.

Is there anything special I need to do to:
1] The .NET/COM Component?
2] The Module that the Thread calls/runs?
3] The function that the Excel Macro calls to display the dialog?
4] The Thread object?
5] The Excel Macro itself?
6] other/
 
B

Brent Rogers

More Info:

The problem only appears to occur if in my thread I make reference to The
Excel Object. The Excel Application object is a global variabe and NOT
local to the Thread itself.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top