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