Re: [ADVANCED-DOTNET] Call STA method from MTA process

2004-02-19 Thread Dave Foderick
Invoke, as in through a delegate. I tried invoking a method synchronously on the STA thread through a delegate and it didn't seem to work. Should it have worked? Anyway I used Thread/ThreadStart to run it and it seems to work but I would be happier if I could make the delegate work. Someone is tel

Re: [ADVANCED-DOTNET] Call STA method from MTA process

2004-02-18 Thread Thomas Tomiczek
ADVANCED-DOTNET] Call STA method from MTA process > > I have a main program that I marked for STA with the > [STAThread] attribute. > That process is instantiating a FileSystemWatcher that is > notifying it when files are dropped into a directory. I get > the notification of the

[ADVANCED-DOTNET] Call STA method from MTA process

2004-02-18 Thread Dave Foderick
I have a main program that I marked for STA with the [STAThread] attribute. That process is instantiating a FileSystemWatcher that is notifying it when files are dropped into a directory. I get the notification of the Created event. So far so good. Now, inside my event handler I need to instantiat