I have this C# app which starts at system boot in the tray, and i have the following problem with it, only on Windows XP
I can't restart the PC while the application is running. If I use file > exit, it stops ok and then i can restart. but if i try restarting with the application open, it just won't do it
I tried adding this in the main window constructor, dunno if its the right thing to do:
Application.ApplicationExit += new EventHandler(this.OnApplicationExit);
and the OnApplicationExit function does the app's shutting down procedure.. but that doesn't help
any ideas?