> Here we go again,
>
> I am investigating using object pooling in Win2000 because I need
> to create
> a link to a mainframe system and there is a delay of ~1.5 secs. I am
> planning to create the link during the initialization and store the handle
> in a private variable. At present I am storing a link in a
> Session variable
> but want to move away from this approach,
... as microsoft recommends you do :)
> I have the following question
>
> Do the variables declared in the private section need to be protected with
> critical sections etc.
I would say it would depend on what lib's you are calling - I'd be inclined
to put them in ANYWAY (in try/finally blocks, natch)
> If so why, each page(ASP) will be calling the Server.Create
> method, do they
> each get a unique new object with their own variables ?
Yup, being that most of these, AFAIK, are _thread_local_, not object-global.
again, AFAIK :)
N
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz