App prevents windows to shutdown
-
Hi, Ive written a small app which runs in the system tray and runs calls from a web service on a timer much like a windows service. I'm using C# Express so i had to write this as a windows application. Everything is working great. Only problem is that users are not allowed to exit this application. Only way to kill the app is by killing the process in task manager. Anyway if the user tries to shutdown his PC it just doesn't shutdown until the process of the app has been killed. :confused: Anyone have a reason as why this is happening? Thanks :)
-
Hi, Ive written a small app which runs in the system tray and runs calls from a web service on a timer much like a windows service. I'm using C# Express so i had to write this as a windows application. Everything is working great. Only problem is that users are not allowed to exit this application. Only way to kill the app is by killing the process in task manager. Anyway if the user tries to shutdown his PC it just doesn't shutdown until the process of the app has been killed. :confused: Anyone have a reason as why this is happening? Thanks :)
what method you are calling to close your application? try Application.Exit()
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN% Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y -------------------------------------------------------- 128 bit encrypted signature, crack if you can
-
what method you are calling to close your application? try Application.Exit()
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN% Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y -------------------------------------------------------- 128 bit encrypted signature, crack if you can
Thanks for your response. The thing is im not calling anything to close the app as the app needs to run all the time unless the pc shuts down. So basically once the user shuts down the pc my app needs to somehow know that the pc is shutting down so it can exit itself. But another question is why doesn't windows kill the process because its trying to shutdown? Thanks
-
Thanks for your response. The thing is im not calling anything to close the app as the app needs to run all the time unless the pc shuts down. So basically once the user shuts down the pc my app needs to somehow know that the pc is shutting down so it can exit itself. But another question is why doesn't windows kill the process because its trying to shutdown? Thanks
http://www.planet-source-code.com/URLSEO/vb/scripts/ShowCode!asp/txtCodeId!2185/lngWid!10/anyname.htm[^] then this will help
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN% Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y -------------------------------------------------------- 128 bit encrypted signature, crack if you can
-
http://www.planet-source-code.com/URLSEO/vb/scripts/ShowCode!asp/txtCodeId!2185/lngWid!10/anyname.htm[^] then this will help
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN% Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y -------------------------------------------------------- 128 bit encrypted signature, crack if you can