Kurt
0
I imported the MSComm ActiveX from VB6 to create a modem object. But C# generates folowing error message when the test program is run. (no compiler warnings)
First time I hear about single-threaded apartment, anyone knows what I can do to solve this? Or some general background information...
Code:
An unhandled exception of type System.Threading.ThreadStateException occurred in system.windows.forms.dll
Additional information: Could not instantiate ActiveX control 648a5600-2c6e-101b-82b6-000000000014 because the current thread is not in a single-threaded apartment.
First time I hear about single-threaded apartment, anyone knows what I can do to solve this? Or some general background information...
Last edited by a moderator: