🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #8414

Re: When OS itself stops the service?

#8414
From: Vladimir Stefanovic
Date: Sat, 30 Oct 2004 06:20
36 lines
2130 bytes
Remy Lebeau (TeamB) wrote

> > I have a service which I installed on the real
> > server (NT4). It worked as I expected about 5
> > minutes, till it was stopped suddenly by OS.
>
> When that happened, there should have been entries
> placed into the NT Event Log to explain why the OS
> decided to do that.

I haven't remembered the NT Event Log. I'll check that
at monday. I'll also supply intensive LOG entries from my
code and then I'll check when exactly that happens.

At the first time I installed the service it workd about half an
hour before the OS termination - and it worked well.

As I said, on my XP it worked well.

I guess that some concurent file access must be the reason. I
prevented my code from that by Critical Sections, but still
there are some files which are also accessed by other (not
mine) services, so possibly I should supply some retries.

Is there some benefits of using 'open' insted of 'fopen' for
accessing files for reading?

Is there any particular need to add some try-catch-finally
in the OnExecute() { while (!Terminated){} }loop of the
service?




Best regards,
Vladimir Stefanovic
Technical Details
Message-ID: <418332c5@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news-in.ntli.net!newsrout1-win.ntli.net!ntli.net!newsfeed.wirehub.nl!194.72.7.126.MISMATCH!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <4182a3dd@newsgroups.borland.com> <4182adaf$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,4ff9aeecafabd51e
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Vladimir Stefanovic" <spam@not.needed>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4182a3dd@newsgroups.borland.com> <4182adaf$1@newsgroups.borland.com>
Subject: Re: When OS itself stops the service?
Date: Sat, 30 Oct 2004 08:20:57 +0200
Lines: 39
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MIMEOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 213.137.116.139
Message-ID: <418332c5@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1099117253 213.137.116.139 (29 Oct 2004 23:20:53 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news-in.ntli.net!newsrout1-win.ntli.net!ntli.net!newsfeed.wirehub.nl!194.72.7.126.MISMATCH!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail