List Info

Thread: BackgroundWorker




BackgroundWorker
user name
2006-07-19 13:18:13
Ok,  thanks. I have been playing with that but I get loads
of page fault
errors after the thread exits 

-----Original Message-----
From: Patrick Steele [mailto:patrickMVPS.ORG] 
Sent: 19 July 2006 14:04
To: VBDOTNETDISCUSS.DEVELOP.COM
Subject: [SPAM] Re: BackgroundWorker 

Nope.  The BackgroundWorker gets threads from the .NET
ThreadPool which
are MTA threads.  You'll have to create the thread yourself
and control
its apartment state manually.

--
Patrick Steele
Microsoft .NET MVP
http://weblogs.asp.net
/psteele



-----Original Message-----
From: Discussion of writing applications and components
using Visual
Basic .NET [mailto:VBDOTNETDISCUSS.DEVELOP.COM] On
Behalf Of Steven
Amani
Sent: Wednesday, July 19, 2006 3:47 AM
To: VBDOTNETDISCUSS.DEVELOP.COM
Subject: [VBDOTNET] BackgroundWorker


I have a program that uses the backgroundworker and also
contains some
ActiveX components. I am getting an error when trying to
initialize the
ActiveX component in the backgroundworker's thread because
it is MTA. Is
there a way I can change the backgroundworker's thread mode
to STA?

===================================
This list is hosted by DevelopMentor(r)  http://www.develop.com

View archives and manage your subscription(s) at
http://discuss.develop.com


===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )