System won't reboot with my program running

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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();
}
 
Back
Top