To Shutdown or Not to Shutdown.. that is the Question.
-
I was testing a little application that monitors battery voltage that is sent to a robot's logic board. I had whipped up a little test form to test the shutdown process in Windows.
btnShutdown_Click(object sender, EventArgs e){ Process.Start("shutdown", "-s -t 30 -c \"Battery Voltage is at a critical level, shutting down.\""); }
When I'd click the shutdown button, a duplicate form would appear instead of shutting down! After debugging for a few minutes to see that the Process.Start actually was being called, I realized my mistake -- I had called my test application "Shutdown".
-
I was testing a little application that monitors battery voltage that is sent to a robot's logic board. I had whipped up a little test form to test the shutdown process in Windows.
btnShutdown_Click(object sender, EventArgs e){ Process.Start("shutdown", "-s -t 30 -c \"Battery Voltage is at a critical level, shutting down.\""); }
When I'd click the shutdown button, a duplicate form would appear instead of shutting down! After debugging for a few minutes to see that the Process.Start actually was being called, I realized my mistake -- I had called my test application "Shutdown".
-
I was testing a little application that monitors battery voltage that is sent to a robot's logic board. I had whipped up a little test form to test the shutdown process in Windows.
btnShutdown_Click(object sender, EventArgs e){ Process.Start("shutdown", "-s -t 30 -c \"Battery Voltage is at a critical level, shutting down.\""); }
When I'd click the shutdown button, a duplicate form would appear instead of shutting down! After debugging for a few minutes to see that the Process.Start actually was being called, I realized my mistake -- I had called my test application "Shutdown".
-
I was testing a little application that monitors battery voltage that is sent to a robot's logic board. I had whipped up a little test form to test the shutdown process in Windows.
btnShutdown_Click(object sender, EventArgs e){ Process.Start("shutdown", "-s -t 30 -c \"Battery Voltage is at a critical level, shutting down.\""); }
When I'd click the shutdown button, a duplicate form would appear instead of shutting down! After debugging for a few minutes to see that the Process.Start actually was being called, I realized my mistake -- I had called my test application "Shutdown".
It's very interesting. Why don't you use this[^] to shutdown Windows?
#region signature my articles #endregion
-
It's very interesting. Why don't you use this[^] to shutdown Windows?
#region signature my articles #endregion
Giorgi Dalakishvili wrote:
It's very interesting. Why don't you use this[^] to shutdown Windows?
Because the Windows shutdown works for me.
-
Giorgi Dalakishvili wrote:
It's very interesting. Why don't you use this[^] to shutdown Windows?
Because the Windows shutdown works for me.
But introduced this bug :D
#region signature my articles #endregion
-
I was testing a little application that monitors battery voltage that is sent to a robot's logic board. I had whipped up a little test form to test the shutdown process in Windows.
btnShutdown_Click(object sender, EventArgs e){ Process.Start("shutdown", "-s -t 30 -c \"Battery Voltage is at a critical level, shutting down.\""); }
When I'd click the shutdown button, a duplicate form would appear instead of shutting down! After debugging for a few minutes to see that the Process.Start actually was being called, I realized my mistake -- I had called my test application "Shutdown".
PhilDanger wrote:
duplicate form would appear instead of shutting down
Did you mean the 'Shutdown' Countdown Timer dialog?
Vasudevan Deepak Kumar Personal Homepage Tech Gossips
-
I was testing a little application that monitors battery voltage that is sent to a robot's logic board. I had whipped up a little test form to test the shutdown process in Windows.
btnShutdown_Click(object sender, EventArgs e){ Process.Start("shutdown", "-s -t 30 -c \"Battery Voltage is at a critical level, shutting down.\""); }
When I'd click the shutdown button, a duplicate form would appear instead of shutting down! After debugging for a few minutes to see that the Process.Start actually was being called, I realized my mistake -- I had called my test application "Shutdown".