Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Apartment model threading question
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Apartment model threading question
Miscellaneous
Thread ID:
01071330
Message ID:
01071330
Views:
61
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
Map
View

Click here to load this message in the networking platform