If you do it the way I suggested then you are debugging the Service that
is run by the system, so yes, it will have exactly the same permissions.

Stacey

> -----Original Message-----
> From: vss [mailto:[EMAIL PROTECTED] 
> Sent: Monday, 15 December 2003 15:47
> To: NZ Borland Developers Group - Delphi List
> Subject: RE: [DUG] Debug NT Services
> 
> 
> Hi again.
> 
> When debugging an NT Service, does it run wiht the 
> permissions that the 
> service will run normally under?
> 
> Why I ask is, if I run my app which moves some files from a 
> file share to 
> another, it does not work. If I debug it, it will do it fine !
> 
> Jeremy
> 
> -----Original Message-----
> From: "vss" <[EMAIL PROTECTED]>
> To: "NZ Borland Developers Group - Delphi List" <[EMAIL PROTECTED]>
> Date: Mon, 15 Dec 2003 14:51:06 +1300
> Subject: RE: [DUG] Debug NT Services
> 
> > Yeah I RTFM and found what to do, then had to run off to a 
> meeting so 
> > I could not reply to my email.
> > 
> > Jeremy
> > 
> > -----Original Message-----
> > From: Myles Penlington <[EMAIL PROTECTED]>
> > To: "'NZ Borland Developers Group - Delphi List'" 
> > <[EMAIL PROTECTED]>
> > Date: Mon, 15 Dec 2003 14:09:38 +1300
> > Subject: RE: [DUG] Debug NT Services
> > 
> > > Thanks.
> > > 
> > > I'm glad you gave that info, as from your earlier 
> comments I thought 
> > > you had put stuff into the run -> parameters and Host application.
> > > 
> > > The process you mention below is what I have attempted to use in 
> > > previous Delphi versions - but has failed. Been a while since I 
> > > wrote my first and
> > > only service app!!
> > > 
> > > Myles.
> > > 
> > > -----Original Message-----
> > > From: Stacey Verner [mailto:[EMAIL PROTECTED]
> > > Sent: Monday, 15 December 2003 14:07
> > > To: NZ Borland Developers Group - Delphi List
> > > Subject: RE: [DUG] Debug NT Services
> > > 
> > > 
> > > When you create a nt service you can Compile it within Delphi IDE 
> > > but you cannot run it directly.
> > > 
> > > Once it is compiled you must install it (only once) by running 
> > > MyServiceName.exe /install.
> > > 
> > > Now to start the service you need to Start it in the Services 
> > > Control Panel Applet (Control Panel -> Administrative Tools -> 
> > > Services). Alternatively you can go Net Start 
> MyServiceName on the 
> > > command line.
> > > 
> > > Once the service is running you can debug it by going Run 
> -> Attatch
> > to
> > > process in the Delphi IDE.
> > > 
> > > Stacey
> > > 
> > > > -----Original Message-----
> > > > From: Myles Penlington [mailto:[EMAIL PROTECTED]
> > > > Sent: Monday, 15 December 2003 13:56
> > > > To: 'NZ Borland Developers Group - Delphi List'
> > > > Subject: RE: [DUG] Debug NT Services
> > > > 
> > > > 
> > > > Stacey,
> > > > Can you please elaborate exactly on what you specify for 
> > > > "Start it with the services control panel applet". I will 
> > > > have to start writing one of these early next year, and this 
> > > > will save some time digging out the info.
> > > > 
> > > > Thanks
> > > > Myles.
> > > > 
> > > > -----Original Message-----
> > > > From: Stacey Verner [mailto:[EMAIL PROTECTED]
> > > > Sent: Monday, 15 December 2003 13:55
> > > > To: NZ Borland Developers Group - Delphi List
> > > > Subject: RE: [DUG] Debug NT Services
> > > > 
> > > > 
> > > > I can debug my NT service fine with delphi 6.
> > > > 
> > > > Compile the service.
> > > > Start it with the services control panel applet.
> > > > Go Run -> Attatch to process in Delphi.
> > > > 
> > > > Stacey
> > > > 
> > > > > -----Original Message-----
> > > > > From: vss [mailto:[EMAIL PROTECTED]
> > > > > Sent: Monday, 15 December 2003 13:50
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: [DUG] Debug NT Services
> > > > > 
> > > > > 
> > > > > Hi All in D6 and D7, is it poss. to debug NT 
> Services? I seem to 
> > > > > remember there being some issue with D5...but not what it was.
> > > > > 
> > > > > Thanks, Jeremy
> > > > > 
> > > > > _______________________________________________
> > > > > Delphi mailing list
> > > > > [EMAIL PROTECTED] 
> > > > > http://ns3.123.co.nz/mailman/listinfo/delphi
> > > > > 
> > > > 
> > > > _______________________________________________
> > > > Delphi mailing list
> > > > [EMAIL PROTECTED] 
> http://ns3.123.co.nz/mailman/listinfo/delphi
> > > > 
> _______________________________________________
> > > > Delphi mailing list
> > > > [EMAIL PROTECTED] 
> http://ns3.123.co.nz/mailman/listinfo/delphi
> > > > 
> > > 
> > > 
> _______________________________________________
> > > Delphi mailing list
> > > [EMAIL PROTECTED] http://ns3.123.co.nz/mailman/listinfo/delphi
> > > _______________________________________________
> > > Delphi mailing list
> > > [EMAIL PROTECTED]
> > > http://ns3.123.co.nz/mailman/listinfo/delphi
> > 
> > _______________________________________________
> > Delphi mailing list
> > [EMAIL PROTECTED] http://ns3.123.co.nz/mailman/listinfo/delphi
> 
> _______________________________________________
> Delphi mailing list
> [EMAIL PROTECTED] http://ns3.123.co.nz/mailman/listinfo/delphi
> 

_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to