Mark,
I don't use the webbroker architecture so correct me if I'm wrong but each
thread instantiates a new webmodule so putting it here may be safe but not
what you want if it is data that should be global.
If it is truly global data then make a global object to hold this and put
critical sections around any code that updates it.
HTH,
Steve
> -----Original Message-----
> From: Mark Derricutt [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 3 May 2001 11:02
> To: Multiple recipients of list delphi
> Subject: [DUG]: ISAPIs and Threads
>
>
> Hiya, in my ISAPI project I want to have an object thats
> shared amongst all
> threads (caching the contents of html files on disc), so
> added a datamodule
> and put stringlist collection stuff there.
>
> However, the ISAPI is failing with an error of "can only have one
> datamodule", how do I get around this? Or should I just put my string
> collection as a global variable in the main webmodule?
>
>
> --------------------------------------------------------------
> -------------
> New Zealand Delphi Users group - Delphi List -
> [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
>
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"