General information
Category:
COM/DCOM and OLE Automation
Title:
Apartment model threading question
I don't understand the rule regarding how many concurrently existing objects can be created on the same thread. I do understand that once a COM object is created on a thread in the STA model, it lives its entire lifetime on that thread.
So in the STA model used by VFP MTDLLs, when an object is created on a thread, can another object of the same olepublic class be created on that same thread before the first object is destroyed? I mean, is this even possible? If it is possible, then there's a local storage issue that I don't understand. Or, is this a situation where the dispatcher decides "Thread A is still busy, so I need to create the next instance of the same object on Thread B (and in the process,maybe even create thread B)."
Thanks very much.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only