473,505 Members | 14,136 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

service

Hi all,
don't know this newsgroup is the right one for my question, if u have a
better one plse tell me.

I run a (freeware) program (truecrypt) that uses some service. I run it via
taskschedular when starting the PC. If I cut the power of the PC (to test
powerfailure) and startup again and start the program then I get the
errormessage that the service is already running. I can find it in registry
entry localkey/system/currentcontrolset001/services (also set 002). If I
delete the entries and restart the computer: no problem.
Why are these entries created, why don't they exist when I power down
correctly? Is there something I can to to prevent this problem from
happening?
It looks like this happens when I cut the power before logging in. After
logging in and cutting the power does not give this problem.
Any ideas anyone?
Thanks
Frank
Nov 17 '05 #1
1 1786
hi Frank,

Frank wrote:
Hi all,
don't know this newsgroup is the right one for my question, if u have a
better one plse tell me. This isn't the right ng. Maybe the microsoft.public.windowsxp groups, or
contact the author of the program.
I run a (freeware) program (truecrypt) that uses some service. I run it via
taskschedular when starting the PC. If I cut the power of the PC (to test
powerfailure) and startup again and start the program then I get the
errormessage that the service is already running. I can find it in registry
entry localkey/system/currentcontrolset001/services (also set 002). If I
delete the entries and restart the computer: no problem.
Why are these entries created, The entries are created becuase the operating system creates them to be
able to maintain state in the system.
why don't they exist when I power down correctly? Because, during a normal shutdown, the operating system shuts down all
services (or terminates them if needed) and sets the appropriate
registry keys to reflect that.
Is there something I can to to prevent this problem from
happening? Contact the author and see if there is something that can be done, or
purchase a UPS that will gracefully shutdown the system in the event of
a power outtage. You have to remember that when you kill the power on a
PC, you are stopping everything mid-stream. any unsaved data or state
will be lost. Doing this can seriously damage your operating system,
even leaving it in a completely unuseable state, forcing you to
reinstall the operating system (or use repair/restore if you trust
microsoft that much).
It looks like this happens when I cut the power before logging in. After
logging in and cutting the power does not give this problem.
Any ideas anyone?
Thanks
Frank


HTH,
~d
Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
6979
by: Hardy Wang | last post by:
Hi all: I read an article from http://www.c-sharpcorner.com/Code/2003/Sept/InstallingWinServiceProgrammatically.asp about how to install a windows service programmatically. Based ont the code...
7
712
by: Mike | last post by:
I want to create a windows service that will monitor another window service. what i need for the service to do is, if a service is stopped I need it to start the service back up example: ...
9
7229
by: SP | last post by:
Hi All, I wrote a windows service which is supposed to stop after specified amount of time. I am calling OnStop() after specified time. OnStop() methods executed but I dont see the service...
3
56922
by: Jeremy S. | last post by:
On my dev machine (XP/Pro with VS.NET 2003) I have been developing a Windows Service and installing it on the local machine by opening the Visual Studio Command Prompt and then executing . Now I...
2
4657
by: letibal | last post by:
Hello, I have written a windows service and created an installer for it. The service runs under the system accounts. When started, it launches a GUI. By default, the InteractiveProcess property...
4
3159
by: kkt49 | last post by:
# vim: et sw=4 ts=8 sts from wxPython.wx import * import sys, os, time import pywintypes import win32serviceutil import win32service import win32event import win32process
4
21683
by: carson | last post by:
I have written two windows services: - service A does some crunching of local data files and uploads them to a central processing computer via http. - service B monitors a manifest file on a...
3
6599
dmjpro
by: dmjpro | last post by:
plz send me a good link which can clearify me how the J2EE framework works i want the details information .... plz help thanx
20
6707
by: =?Utf-8?B?cmtibmFpcg==?= | last post by:
I was executing the steps given in http://suppor.microsoft.com/kb/308359 for testing a sample web service application. However, the following line gives a compilation error: localhost.Service1...
5
3270
by: dm3281 | last post by:
I'm really starting to hate writing services -- or trying to, anyway. Why do I need to rename my project to the service name? Why do I need to set the "ServiceName" property to my service name?...
0
7303
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7018
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5613
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5028
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4699
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1528
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
407
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.