Jump to content

System.Threading.ThreadStateException

- - - - -

  • Please log in to reply
No replies to this topic

#1
ahpooh

ahpooh

    Newbie

  • Members
  • Pip
  • 5 posts
hi all,
i faced an error in my project:
"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."

after i set as below:
Thread.CurrentThread.ApartmentState = ApartmentState.STA

other error occured:
Fail to set ApartmentState

anyone know why?
please help...Thanks




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users