>>>I have a compiled a multi-threaded dll in VFP and registered that dll in COM+.
>>>When i look at the properties I see the threading model is Single Thread Apartment and i can't enable object pooling.
>>>
>>>Is this right? Can't i enable an object pool for my dll?
>>
>>Object pooling is only available to C++ - created DLL's. (free-threaded model)
>
>This is what a microsoft article sais:
>
>For Transaction Server to create the pool of running instances, COM components must support apartment model threading. Visual FoxPro 6.0 COM components are apartment model threaded and fully support Transaction Server. Developers can build middle-tier COM components with Visual FoxPro 6.0 and scale them to hundreds of users and more.
>
>URL:
http://msdn.microsoft.com/vfoxpro/prodinfo/evaluation/performance.aspYou can write MTS/COM+ components using VFP but they can not be configured for object pooling. See the following about requirements for object pooling:
http://msdn.microsoft.com/library/psdk/cossdk/pgservices_objectpooling_2e43.htmIt talks about VB but VFP is the same in that it creates apartment threaded objects.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao