Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object pooling in COM+
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00455028
Message ID:
00456892
Views:
31
>>>>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.asp
>
>You 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.htm
>
>It talks about VB but VFP is the same in that it creates apartment threaded objects.


Which is why VFP works best with multiple In-Process exes on SMP CPUs - If I remember correctly Rick Stahl recommended a max of four CPU per box, each running its own In-Process app.
Nebraska Dept of Revenue
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform