Yes, each thread uses its own instance of the VB6 COM+ Component.
In Pseudocode:

MyService:
   Dim w As New Worker(folderName)
   _workerList.Add(w)
   Dim t As New Threading.Thread(AddressOf w.StartWorker)
   t.SetApartmentState(Threading.ApartmentState.STA)
   t.Start()

Class Worker

And I use thread.SetApartmentState(Threading.ApartmentState.STA).

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

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

Reply via email to