COM and MultiThreading

M

Murad Tchary

Hi
Here is the code that I use in my app and that code works just fine:

loProcessThread = New Thread(AddressOf ProcessSomething)
loProcessThread.IsBackground = True

loProcessThread.Start()

'Wait until some data will be ready to be use ...
Do
If llSomeDataAreProcessed Then
Exit Do
Else
Thread.Sleep(100)
End If
Loop

But, when I try to use the same code in a COM - it does nothing. My base
class inherits System.EnterpriseServices.ServicedComponent .
Is it possible to use multithreading in COM? If yes, what should be done?

TIA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top