RE: [DUG]: Unable to Create File

1999-03-28 Thread Chris Crowe

I found that INETINFO.EXE is keeping my DLL in memory, and the only way at the moment 
is to run two batch files...

@Echo off
net Stop "IIS Admin Service" /y
echo.
Pause

@Echo off
Echo.
net Start "IIS Admin Service"
net Start "World Wide Web Publishing Service"
Net Start "FTP Publishing Service"
Echo.
Echo Done
pause

What does MTS do with the DLL?, wouldn't I have to register it with MTS?, if so (since 
I have not ever done this) is an easy way to do this.

Christopher Crowe (Software Developer)
Microsoft MVP, MCP

Byte Computer & Software LTD
P.O Box 13-155 
Christchurch
New Zealand
Phone/Fax (NZ) 03-3651-112


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Jeremy Coulter
> Sent: Sunday, 28 March 1999 10:34
> To: Multiple recipients of list delphi
> Subject: RE: [DUG]: Unable to Create File
> 
> 
> Chris are you running Microsoft Transaction Server ??
> If not you will need to install it and then more fun wil start.BUT I
> suspect that what is happening is, that you need to close ALL your things
> like IE and Interdev. etc. that MIGHT be holding a ref. to this file open,
> and THEN try itI know I have had this problem my self, and it 
> was partly
> solved by installing MTS and partly by doing the close everything trick.
> 
> Jeremy
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> > Behalf Of Chris Crowe
> > Sent: Sunday, March 28, 1999 10:06
> > To: Multiple recipients of list delphi
> > Subject: [DUG]: Unable to Create File
> >
> >
> > Hi,
> >  I am writing an ActiveX server object, which I register under
> > the Run menu of Delphi 4. But I can only do this once, as after
> > this it will not link it as I get the message "Unable to create
> > output file " is this because I used the server on an ASP page?
> >
> > If so how does one get on with creating a server control and
> > testing it. I am running under Windows NT Server 4.
> >
> > I have had some funny situations with NT4 lately.
> >
> > If I make a directory and copy some files there, run a file from
> > there, and then move the files, I can not delete the directory
> > becuase it is in use. I am wondering if this is the same problem?
> >
> > Christopher Crowe (Software Developer)
> > Microsoft MVP, MCP
> >
> > Byte Computer & Software LTD
> > P.O Box 13-155
> > Christchurch
> > New Zealand
> > Phone/Fax (NZ) 03-3651-112
> >
> > 5yR2:.u"M2A&.
> 
> 
> --
> -
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>   Website: http://www.delphi.org.nz
> ^Á—š•©Ý
éi†%,z» ®‹©
éi†"â²×^–˜buéi†*+‚|Öy»"µèm¶ŸÿÃzZaŠŠàŸ


RE: [DUG]: Unable to Create File

1999-03-28 Thread Chris Crowe

I found that as well. I just said that to Jeremy Coulter. 

Nic Wise mentioned:
Yup. Welcome to the hell that is debugging ASP objects. The only way is
to do it like you would with an ISAPI - something like run-> inetinfo -w
(its in the help and manauals etc)

So I will try this inetinfo-w switch and see what happens.

I use a program from SYSInternals (Handle2X.ZIP) which shows which DLL's a program is 
using so it won't take long to see if it free's it.

Chris

Christopher Crowe (Software Developer)
Microsoft MVP, MCP

Byte Computer & Software LTD
P.O Box 13-155 
Christchurch
New Zealand
Phone/Fax (NZ) 03-3651-112


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Neil Anderson
> Sent: Sunday, 28 March 1999 13:23
> To: Multiple recipients of list delphi
> Subject: RE: [DUG]: Unable to Create File
> 
> 
> I use the following two bat files to stop and restart IIS when doing ASP
> COM stuff
> 
>  <>  <> 
> Neil
> 
> > -Original Message-
> > From:   Nic Wise [SMTP:[EMAIL PROTECTED]]
> > Sent:   Sunday, March 28, 1999 1:16 PM
> > To: Multiple recipients of list delphi
> > Subject:Re: [DUG]:  Unable to Create File
> > 
> > >  I am writing an ActiveX server object, which I register under the
> > Run menu of Delphi 4. But I can only do this once, as after this it
> > will not link it as I get the message "Unable to create output file
> > " is this because I used the server on an ASP page?
> > 
> > 
> > Yup. Welcome to the hell that is debugging ASP objects. The only way
> > is
> > to do it like you would with an ISAPI - something like run-> inetinfo
> > -w
> > (its in the help and manauals etc)
> > 
> > > 
> > > If so how does one get on with creating a server control and testing
> > it. I am running under Windows NT Server 4.
> > 
> > 1) debug it with a delphi app.
> > 2) debug it with Delphi and IIS as above. Not a lot of fun.
> > 
> > > I have had some funny situations with NT4 lately.
> > > 
> > > If I make a directory and copy some files there, run a file from
> > there, and then move the files, I can not delete the directory becuase
> > it is in use. I am wondering if this is the same problem?
> > 
> > yeah, NT hold references to the directory and the files, but holds the
> > directory for way too long.
> > 
> > N
> > --
> > -
> > New Zealand Delphi Users group - Delphi List -
> > [EMAIL PROTECTED]
> >   Website: http://www.delphi.org.nz
> ^Á—š•©Ý
éi†%,z» ®‹©
éi†"â²×^–˜buéi†*+‚|Öy»"µèm¶ŸÿÃzZaŠŠàŸ


RE: [DUG]: Unable to Create File

1999-03-28 Thread Chris Crowe

> Yup. Welcome to the hell that is debugging ASP objects. The only way is
> to do it like you would with an ISAPI - something like run-> inetinfo -w
> (its in the help and manauals etc)

Where are the HELP Files you mention?, and with does the -w switch do?

> yeah, NT hold references to the directory and the files, but holds the
> directory for way too long.

I think NT4 SP4 makes this problem worse...

Chris

Christopher Crowe (Software Developer)
Microsoft MVP, MCP

Byte Computer & Software LTD
P.O Box 13-155 
Christchurch
New Zealand
Phone/Fax (NZ) 03-3651-112


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Nic Wise
> Sent: Sunday, 28 March 1999 13:16
> To: Multiple recipients of list delphi
> Subject: Re: [DUG]: Unable to Create File
> 
> 
> >  I am writing an ActiveX server object, which I register under 
> the Run menu of Delphi 4. But I can only do this once, as after 
> this it will not link it as I get the message "Unable to create 
> output file " is this because I used the server on an ASP page?
> 
> 
> Yup. Welcome to the hell that is debugging ASP objects. The only way is
> to do it like you would with an ISAPI - something like run-> inetinfo -w
> (its in the help and manauals etc)
> 
> > 
> > If so how does one get on with creating a server control and 
> testing it. I am running under Windows NT Server 4.
> 
> 1) debug it with a delphi app.
> 2) debug it with Delphi and IIS as above. Not a lot of fun.
> 
> > I have had some funny situations with NT4 lately.
> > 
> > If I make a directory and copy some files there, run a file 
> from there, and then move the files, I can not delete the 
> directory becuase it is in use. I am wondering if this is the 
> same problem?
> 
> yeah, NT hold references to the directory and the files, but holds the
> directory for way too long.
> 
> N
> --
> -
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>   Website: http://www.delphi.org.nz
> 5ìy©ZÐޖ˜bRÇ«²
躐ޖ˜b.+-uéi†'^–˜b¢¸'Íg›²+^†Ûiÿü0Á×¥¦¨®   ó


RE: [DUG]: Unable to Create File

1999-03-27 Thread Neil Anderson

I use the following two bat files to stop and restart IIS when doing ASP
COM stuff

 <>  <> 
Neil

> -Original Message-
> From: Nic Wise [SMTP:[EMAIL PROTECTED]]
> Sent: Sunday, March 28, 1999 1:16 PM
> To:   Multiple recipients of list delphi
> Subject:  Re: [DUG]:  Unable to Create File
> 
> >  I am writing an ActiveX server object, which I register under the
> Run menu of Delphi 4. But I can only do this once, as after this it
> will not link it as I get the message "Unable to create output file
> " is this because I used the server on an ASP page?
> 
> 
> Yup. Welcome to the hell that is debugging ASP objects. The only way
> is
> to do it like you would with an ISAPI - something like run-> inetinfo
> -w
> (its in the help and manauals etc)
> 
> > 
> > If so how does one get on with creating a server control and testing
> it. I am running under Windows NT Server 4.
> 
> 1) debug it with a delphi app.
> 2) debug it with Delphi and IIS as above. Not a lot of fun.
> 
> > I have had some funny situations with NT4 lately.
> > 
> > If I make a directory and copy some files there, run a file from
> there, and then move the files, I can not delete the directory becuase
> it is in use. I am wondering if this is the same problem?
> 
> yeah, NT hold references to the directory and the files, but holds the
> directory for way too long.
> 
> N
> --
> -
> New Zealand Delphi Users group - Delphi List -
> [EMAIL PROTECTED]
>   Website: http://www.delphi.org.nz

 Start.bat
 Stop.bat


Re: [DUG]: Unable to Create File

1999-03-27 Thread Nic Wise

>  I am writing an ActiveX server object, which I register under the Run menu of 
>Delphi 4. But I can only do this once, as after this it will not link it as I get the 
>message "Unable to create output file " is this because I used the server on an 
>ASP page?


Yup. Welcome to the hell that is debugging ASP objects. The only way is
to do it like you would with an ISAPI - something like run-> inetinfo -w
(its in the help and manauals etc)

> 
> If so how does one get on with creating a server control and testing it. I am 
>running under Windows NT Server 4.

1) debug it with a delphi app.
2) debug it with Delphi and IIS as above. Not a lot of fun.

> I have had some funny situations with NT4 lately.
> 
> If I make a directory and copy some files there, run a file from there, and then 
>move the files, I can not delete the directory becuase it is in use. I am wondering 
>if this is the same problem?

yeah, NT hold references to the directory and the files, but holds the
directory for way too long.

N
---
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
  Website: http://www.delphi.org.nz



RE: [DUG]: Unable to Create File

1999-03-27 Thread Jeremy Coulter

Chris are you running Microsoft Transaction Server ??
If not you will need to install it and then more fun wil start.BUT I
suspect that what is happening is, that you need to close ALL your things
like IE and Interdev. etc. that MIGHT be holding a ref. to this file open,
and THEN try itI know I have had this problem my self, and it was partly
solved by installing MTS and partly by doing the close everything trick.

Jeremy

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Chris Crowe
> Sent: Sunday, March 28, 1999 10:06
> To: Multiple recipients of list delphi
> Subject: [DUG]: Unable to Create File
>
>
> Hi,
>  I am writing an ActiveX server object, which I register under
> the Run menu of Delphi 4. But I can only do this once, as after
> this it will not link it as I get the message "Unable to create
> output file " is this because I used the server on an ASP page?
>
> If so how does one get on with creating a server control and
> testing it. I am running under Windows NT Server 4.
>
> I have had some funny situations with NT4 lately.
>
> If I make a directory and copy some files there, run a file from
> there, and then move the files, I can not delete the directory
> becuase it is in use. I am wondering if this is the same problem?
>
> Christopher Crowe (Software Developer)
> Microsoft MVP, MCP
>
> Byte Computer & Software LTD
> P.O Box 13-155
> Christchurch
> New Zealand
> Phone/Fax (NZ) 03-3651-112
>
> 5yR2:.u"M2A&.


---
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
  Website: http://www.delphi.org.nz