sta
How to tell thread-pool to run a delegate on a `STA` thread?
I need a thread-pool for working with COM objects inside an ASP.NET project. QueueUse开发者_StackOverflowrWorkItemSTA(WaitCallback)[详细]
2023-02-01 17:09 分类:问答What are the limitations of a STA thread in compare to MTA threads?
If we make a thread STA like this: Thread.SetApartmentState(STA); then it cannot run code marked with [MTAThread] attribute.[详细]
2023-01-31 23:08 分类:问答How many 'STA' threads can coexist inside a process?
I need multiple STA threads inside my ASP.NET application to use some COM components. I read somewhere inside each process, only one STA thread c开发者_C百科an exist. I coded a sample project and mad[详细]
2023-01-31 22:15 分类:问答Is there a generic 'FuncSTA' for invoking delegates by a STA thread?
I have an ASP.NET application and need to use some C开发者_开发技巧OM components inside it. I need a wrapper class over Func or Action which creates a new STA thread and run the delegate with that th[详细]
2023-01-31 19:10 分类:问答How are STA COM components handled when used in a WCF service hosted in IIS (7+)?
From what I understand, when a COM component marked as using STA is used from an MTA thread, the calls are supposed to be marshalled to an STA thread and executed from that dedicated thread. In the ca[详细]
2023-01-19 14:18 分类:问答STA not recognized in Slim (FitNesse)
I wrote a custom table class for Slim that lets users write commands that are used to run automated tests. All commands are now working, except for one that relies on a certain call that has to be mad[详细]
2023-01-08 01:25 分类:问答Process.Start is blocking
I\'m calling Process.Start, but it blocks the current thread. pInfo = new ProcessStartInfo(\"C:\\\\Windows\\\\notepad.exe\");[详细]
2023-01-03 21:15 分类:问答How to run something in the STA thread?
In my WPF application I do some async communication (with server). In the callback function I end up creating InkPresenter objects from the result from server. This requires the running thread to be S[详细]
2022-12-22 08:22 分类:问答Using WPF UI thread should always ensure STA apartment mode, right?
In my WPF application I communicate asynchronously with a server. The callback will hence not be run in the UI thread, and as I need to do some WPF stuff there (create InkPresenter object) I need it t[详细]
2022-12-22 04:07 分类:问答