System.Threading.ThreadStateException

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ahpooh82
    New Member
    • Jan 2007
    • 2

    #1

    System.Threading.ThreadStateException

    hi all,
    i faced an error in my project:
    "An unhandled exception of type 'System.Threadi ng.ThreadStateE xception'
    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.CurrentT hread.Apartment State = ApartmentState. STA

    other error occured:
    Fail to set ApartmentState

    anyone know why?
    please help...Thanks
Working...