On Sep 30, 3:37*am, Frank Munsberg <bufferunder...@gmx.dewrote:
It is just a wild guess since I haven't done anything with add-in's so
far. Could it be that that your button starts this other process and
waits for its completion? If so then my guess is that the thread that
your button is in may be still waiting for the other process to finish
hence the blocking UI. Maybe you could try to start the other process
in a separate thread to get around this, but maybe this also makes
things too complicated.
Greets
Frank
I think that might be it but when I try to use a ThreadStart to start
in a different thread the application I am trying to run seems to
crash. Is this the right way to do it:
Launcher useForLaunch = new Launcher();
useForLaunch.excelObj = excelObj;
System.Threading.Thread oThread = new System.Threading.Thread(new
System.Threading.ThreadStart(useForLaunch.Launch)) ;
oThread.Start();
public class Launcher{
internal Microsoft.Office.Interop.Excel.Application
excelObj;
internal void Launch()
{
ExternalInterface fInt2 = new ExternalInterface(excelObj);
}
}
Thanks!
Bob