sta
Calling another form with WebBrowser from mainform - giving ERROR?
I\'m calling from3 from my form1 and its giving this error in Initialize开发者_StackOverflow中文版Component()[详细]
2023-04-06 09:34 分类:问答Using STA for WebBrowser Control
I am trying to add a WebBrowser to an application to be able to display a webpage, but keep getting a problem with the threading type.[详细]
2023-04-01 13:57 分类:问答C# Timer for STAThread COM calls in a Console App
I have a console application that needs to fire a method that uses COM. The program starts with [STAThread]. The program executes correctly when not using a timer process, but apparently suffers from[详细]
2023-03-30 14:43 分类:问答How to pump message for COM STA threads in C#?
I have a main STA thread that calls a lot methods on the COM object and a secondary STA thread that does a lot work on the same object too. I want the main thread and the secondary thread to work in p[详细]
2023-03-21 17:03 分类:问答Unable to set WinForms clipboard in unit test
I\'d like to populate the Forms.Clipboard with text from a NUnit test. The first problem I encountered was that the Clipboard must be used in STA mode. I found the solution (NUnit 2.5.x+) to set the[详细]
2023-03-12 13:06 分类:问答Blocking method of an STA COM object is a design defect?
Say a COM object is created on an STA thread. So all calls to this object are serialized in this thread. So if 开发者_Go百科a method of the object\'s is blocking, all threads that use this object are[详细]
2023-03-11 17:33 分类:问答Questions about COM multithreading and STA / MTA
Hi I am a beginner in COM. I want to test a COM dll in both STA and MTA modes. My first question is: is it possible a COM object supports both STA and MTA?[详细]
2023-03-10 23:26 分类:问答Blocking calls(wait, com calls) in STA thread
I have a windows service which creates 10+ threads which: do their job and then enter WaitForMultipleObjects state until they are resumed again ..[详细]
2023-02-18 12:37 分类:问答How can I make a background worker thread set to Single Thread Apartment?
I am creating an automated test running application.In this part of the application, I am working on a polling server.It works by constantly polling the web server to determine when a new automated 开[详细]
2023-02-04 11:23 分类:问答Why are WinForms applications STAThread by default?
When you create an empty WinForms application with Visual Studio, the template has the STAThread attribute in the main application class.[详细]
2023-02-03 10:35 分类:问答