473,386 Members | 1,621 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

OnShutdown runs after processes are closed

Hello,

I am trying to make a service which will shut a hanging process down.
Before the OnShutdown function runs, windows asks if I would like to
end the task. I cannot modify the hanging process to fix it.

I was wondering if anyone had any experience with the order shutdown
events occur. Also, I need to be able to shut down the process on a
logoff. I have all of the code to end the task. I just need to know
where to put it to run at the right time.
Thanks for your help.
Paul
Nov 15 '05 #1
0 977

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

Similar topics

7
by: Simon | last post by:
My webhosting company cut off my website the other day because i had "too many hanging processes" What does this mean and what can i do to prevent this from happening. They gave me the following...
1
by: Sori Schwimmer | last post by:
Hi, I am working on an application which involves interprocess communication. More to the point, processes should be able to notify other processes about certain situations, so the "notifyees"...
7
by: knf | last post by:
For a C# windows service, it seems like the best practice is to only implement OnStop(). Is that correct? Do I only need OnShutdown if I need to take different actions when the server is shutdown?...
0
by: TDC | last post by:
At system start I get the OnStart. When the system shuts down, do I *just* get an OnShutdown, or will I get both and OnStop and an OnShutdown? If you only get the OnShutdown, I find it odd that...
2
by: Peter Meinl | last post by:
Restarting Windows seems not to fire the OnShutdown event in the Windows Service. Does not work on Windows XP SP2 and not on Windows 2003 Server SP1. OnStart and OnStop do work fine. Steps...
1
by: Croco Stimpy | last post by:
I have a service that must know when the OS shuts down, so it can perform some cleanup. I just found that the OnShutDown event never fires when the machine shuts down! I did some checking and...
2
by: lb.weissman | last post by:
Hi, I have a simple service, which I want to stop normally. I added the method OnShutdown, and set the CanShutdown property to true. Still, when I restart the computer my OnShutdown method is...
0
by: Klaus Unterberg | last post by:
Hello, does anyone know, how to make an EventLog in service event OnShutdown? It seems that OnShutdown cannot make an entry to the eventlog.writeentry(). Even when Eventlog is listed in the...
14
by: madankarmukta | last post by:
Hi , I want to commit the chages/ want to do some activity on service's OnShutuDown().But i found that It neven get's called ..when i shut down the system or when i power it off..in Both the cases...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...

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.