Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I use CreateThread from a COM+ component

Status
Not open for further replies.

dimitarm

Programmer
Dec 11, 2002
2
BG
I am creating a MTA component which needs to spawn a new thread. But when I want to shut down my application it hunds in CoUninitialize() in the thread spawned by my component? Some books say that we should avoid calling a CreateThread from a COM+ component however I didn't find anything of that kind written in MSDN. Any ideas why this happens and may I create new threads from a COM+ component?
Thanks
 
Why do you want to creat a new thread?
Can you do it in another manner via using other components.
Perhaps make a Async COM object.

The problem of creating other threads is that the other threads can mess up transaction. Just like it is a no no to change the security context of a com object through code.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top