Thanks for that guys... Just what I am after...

Now, I have other queries... :-)

>From the docs, I am a bit confused... I quote 'The Web module that you
set up at design time is actually a template. In ISAPI and NSAPI
applications, each request message spawns a separate thread, and
separate instances of the Web module and its contents are created
dynamically for each thread.'

Now, from what I have observed, a new instance of my web module is not
created each time. Each request seems to use the last instance... Which
makes sense otherwise my dll would be connecting and disconnecting to
the db for each request.

So are the docs just wrong, or have I misunderstood something (e.g. is
the same thread used again and again and a new one only created for a
concurrent connection???). The docs also talks about there being only
one dispatcher allowed... which, if on the data module, the above
paragraph would lead me to believe that it would try and create a new
one for each thread... which apparently is also not allowed.

Another question :-)...

I have a unit that uses the web module, in particular, the database
components on the web module. Delphi creates a global instance variable
for the web module and passes it to createForm in the project source.
When I try and reference this module, it does not seem to be created.

What I have done, is created a new global variable to reference my web
module. The first time a web request is received I set this global
variable to self. From then on in, everything seems to work fine...

I assume this is not the proper way of doing things... I just thought it
odd that Delphi declares a global variable, but doesn't seem to assign
anything to it.

Once again, any help appreciated.

Regards
Colin

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On
Behalf Of Mark Derricutt
Sent: Thursday, 16 August 2001 1:08 p.m.
To: Multiple recipients of list delphi
Subject: Re: [DUG]: Some ISAPI Questions...


All I do for this is:

var
        Path: array[0..MAX_PATH - 1] of Char;
        sDir: string;
begin
        SetString(sDir, Path, GetModuleFileName(HInstance, Path,
SizeOf(Path)));
        sDir := ExtractFilePath(sDir);
.....
end;


--On Thursday, 16 August 2001 11:58 a.m. +1200 C Fraser 
<[EMAIL PROTECTED]> wrote:

> First... I want to find the dir where my dll is running.  The 
> PathTranslated seems to return wrong information. From the 
> documentation it looks like PathTranslated is what I want, but it 
> doesn't work as expected.



-- 
Vi de udødelige inviterer dere til å slå dere sammen med oss

------------------------------------------------------------------------
---
    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"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

######################################################################
Attention:
The information in this email and in any attachments is confidential.  
If you are not the intended recipient then please do not distribute, 
copy or use this information. Please notify us immediately by return 
email and then delete the message from your computer.
Any views or opinions presented are solely those of the author.
######################################################################
---------------------------------------------------------------------------
    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"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to