473,394 Members | 1,700 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,394 software developers and data experts.

System won't reboot with my program running

I've got a C# program that seems to be adept at preventing the system from rebooting. If it is running when you tell the system to reboot it closes and then somehow stops the reboot from happening. Once the program has quit you can reboot the system just fine. The basic structure of the program is a loop that goes through a number of Windows forms. I have posted the code for the core loop at http://pages.pomona.edu/~jcc02003/CoreLoop.txt. If having more code would be helpful let me know and i'll be happy to post it.
Nov 16 '05 #1
1 1367
I have been testing various things and what i just found is that ShowDialog (which is called from the ShowWizard function) seems to be causing problems. If i comment that function out things seem to run fine. Any ideas what i could be doing wrong with the show dialog setup. I have pasted the contents of one of my ShowWizard functions below.

public override void ShowWizard()
{
this.txtDebug.Text = "";
this.cmdBack.Enabled = false;
this.ShowDialog();
}

"Jefferson Cowart" wrote:
I've got a C# program that seems to be adept at preventing the system from rebooting. If it is running when you tell the system to reboot it closes and then somehow stops the reboot from happening. Once the program has quit you can reboot the system just fine. The basic structure of the program is a loop that goes through a number of Windows forms. I have posted the code for the core loop at http://pages.pomona.edu/~jcc02003/CoreLoop.txt. If having more code would be helpful let me know and i'll be happy to post it.

Nov 16 '05 #2

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

Similar topics

3
by: Chris LaJoie | last post by:
We (My team and I) are currently developing an application that works fine on 3 of our dev machines, but our 4th is having a problem. It's an old P3 733Mhz with 192MB RAM and running XP Pro. It...
1
by: Tim Marshall | last post by:
I've just received a new computer with Win XP Version 5.1.2600. I want to have Access 2003 and Access 97 running on this, so I did some googling on cdma and it seems I must install these versions...
2
by: DJMonte | last post by:
I have a C# program that is scheduled to run at system startup. When a user logs into the machine, how can I show a status screen of the running application? I tried with a NotifyIcon but the icon...
10
by: Mark | last post by:
I am working on a monitor system - web page that will show what processes are running on different computers. How would I get such information? All I need is a name of a process (title on a taskbar...
5
by: Ty Moffett | last post by:
I'm using a queue to hold a series of strings that are complete command line arguments to start the silent/unattended installation of various pieces of software. Here is some sample code. 1 Dim...
2
by: Jason | last post by:
hi, i have an application that has a filesystemwatcher if this app is running...and the user attempts to shut the pc down (or log off) nothing happens.... if the program is stopped the user...
20
by: djc | last post by:
I get this *intermittently* on a utility I am working on. I don't know whats going on but here are a few points about it: - using VS 2005, running on xp sp2 - program uses multiple threadpool...
2
by: semedao | last post by:
Hi All, I developed Outlook add-in with VS 2005 , everything work fine , until the machine reboot unnormally , when I opened the solution again many projects was not there ! (I have more then...
3
by: cj | last post by:
My program shuts itself down and reboots the pc it's running on at 2:00am twice a week and has been doing so without fail for over a year. But twice in the past month it's been found running in the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
0
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...

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.