Windows Vista x64 and Shutting Down

Any off topic discussions should go in this forum. Post count is not increased by posting here.
FTP Access status is required to post in this forum. Find out how to get it
Forum rules
Any off topic discussions should go in this forum. Post count is not increased by posting here.
FTP Access status is required to post in this forum. Find out how to get it
Post Reply
Frozenport
User avatar
FTP Access
Posts: 1022
Joined: Fri Sep 01, 2006 10:04 pm
Location: The Ephemeral between existance and non-existance: AKA "being"
Contact:

Windows Vista x64 and Shutting Down

Post by Frozenport »

Hello,
I am writting a program where it shuts down the computer at some point. My problem is that during debugging it actually shuts my computer down...

Does anybody know how in Visual Studios 2005 C# it is possible so that the shutdown actually doesn't get carried out during debugging...

I thought about crippling the shutdown meathod during testing but I wouldn't like that solution very much....
Image
Part Time Troll - HPC Enthusiast - Spelling Master - Old Fart

ppc_digger
Donator
Posts: 590
Joined: Sat Aug 19, 2006 1:25 am
Location: Israel

Post by ppc_digger »

Surround it in an #ifdef __DEBUG__ or some C# equivalent, and, possibly, make it show a message box instead.

Post Reply