Article View: borland.public.delphi.nativeapi
Article #23Debugging NT Service App
From: petesouthwest
Date: Fri, 16 Dec 2005 14:42
Date: Fri, 16 Dec 2005 14:42
27 lines
2033 bytes
2033 bytes
Hi I'm trying to debug an NT Service App that gets stuck showing the status 'starting'. I tried writing to a file on c: drive but that only seems to work after someone has logged on. >From what I could find on the net, the way to trace what is happening is to use the windows event log. I found a component and the demo looked easy to use and worked, so I have tried to include this into my service. I'm then creating an msi using installsheild x, and assigning the service app using group policy, to a group of computers using the computer configuration section. The service thus starts when the machine boots, before anyone has logged on. Unfortunately, no events seem to get logged :( Can anyone tell me if I'm approaching this problem in the right way? (ie using the event component) and what i need to do to log events in my service? I'm using Delphi 6 on windows xp, target system windows 2000 server/client network
Technical Details
Message-ID:
<1134744149.152398.137000@g44g2000cwa.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!g44g2000cwa.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: f94dd,6be84ade3e93f84,start X-Google-Attributes: gidf94dd,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!g44g2000cwa.googlegroups.com!not-for-mail From: petesouthwest@hotmail.com Newsgroups: borland.public.delphi.nativeapi Subject: Debugging NT Service App Date: 16 Dec 2005 06:42:29 -0800 Organization: http://groups.google.com Lines: 28 Message-ID: <1134744149.152398.137000@g44g2000cwa.googlegroups.com> NNTP-Posting-Host: 81.79.13.102 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1134744154 6477 127.0.0.1 (16 Dec 2005 14:42:34 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 16 Dec 2005 14:42:34 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.8) Gecko/20050511 Firefox/1.0.4,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: g44g2000cwa.googlegroups.com; posting-host=81.79.13.102; posting-account=vOIcAg0AAABdl2IgYY3yki_0knfyXJf7