well , the important thing i want to know :
in code the thread.currentthread.apartmentstate is STA , (when i read the
value)
now, as i said, i dont use com object in that thread.
this thread is actcually running in STA ?
cause i can see other thread's can access objects created by the this
thread,
and its not act like STA.
what wrong here ?
"Mattias Sjögren" <ma********************@mvps.org> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
can i still set this thread to run as STA ,even, if i dont use com object
?
Yes.
For the main thread you don't have to do it, since Main() in VB.NET
implicitly is given the STAThread attribute.
Mattias
--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.