Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Computer restarts upon execution... but only sometimes.

Status
Not open for further replies.

nexius

Programmer
Jul 8, 2000
109
CA
Hey

I wonder if anyone can figure this one out for me:

Every once in awhile, maybe a couple times an hour, I'll compile my code and hit CTRL-F5 to run it... but instead of running the computer just restarts!

And then if I'm unlucky I'll load up my code again to discover that parts have been converted to binary!

This is *incredibly* annoying, as you can imagine...
Could I be hitting a hot-key or something? Any suggestions at all appreciated!
 
I think you have a keyboard hook what restarts your computer.

Ion Filipski
1c.bmp
 
Just so you don't feel alone, I have a similar, intermittent problem with VC++ which is also annoying...

Happily coding and compiling for a couple of hours and then rebuild and the VC freezes (and, eventually, so does the whole machine).

I *know* this doesn't help, but maybe it will help to know that you're not alone.

Roger J Coult
Allied Laboratory Services Limited
Grimsby, UK
 
Keyboard hook...?

What do you mean by this exactly?

How would I get rid of it if it is a "keyboard hook"?
 
Keyboard hook in simple terms is like a hot-key that has been programmed to restart your computer. This will potentially work globally.

To verify if this is true, see if ur computer restarts even when u compile through the MENU option.

That is, dont hit Ctrl+f5. Instead, click on "Build -> Execute" on File Menu.

Also, indicate what OS and any other detail that u can give.

/Srikanth

Asked clerk for self-help section. “That will defeat purpose.”
 
also, try pressing CTRL + F5 outside of visual studio, see what happens. and again try it when visual studio is open BUT NOT in the foreground.

Skute

"There are 10 types of people in this World, those that understand binary, and those that don't!"
 
OK

Thanks for your suggestions.

The problem is, that it only does this about 1 in every 50 compiles... And every time it does this, there is about a 1 in 3 chance that it will convert part of my source into binary (in other words, making it unreadable).

I've tried hitting CTRL-F5 (and different combinations of keys that are close to this) outside of visual studio, and in visual studio... But still, it never restarts.

I am completely out of ideas.

Well, then again I suppose I could just use the menu option every time I want to run it... but I'd really prefer not to.

Thanks again
 
Also, if it helps I'm using windows XP
 
If you just changed your source file right before your computer restarted, chances are part of the file is damaged simply because the source files are on a volume set up for write caching, and the cache was not completely flushed before the computer restarted.

I hope you're using some kind of version control to safeguard from losing your source code completely -- something as simple as a CVS server set up on a second networked computer would be good enough.

I was thinking another possibility is you may have some other software installed that is hooking itself in whenever your program starts, and this software tries to talk to some device driver on your computer that is buggy and causes a restart. I don't know how this is done, but I've noticed that whenever I would start a program running in Developer Studio, among the DLLs it says it's loading when the program starts are various things that have nothing to do with my program, like a Yahoo Messenger DLL back when I had that software installed.
 
I doubt that's what's happening, since just now, it restarted and I wasn't even compiling or running it...

I had the source open in vc++, but it was not in the foreground. I tried to open another program and instantly I found myself booting up again!

Grrr... And yes, that's a good idea teriviret, I should _definately_ look into how to use CVS.

Maybe I have a virus. I'll try virus scanning.
 
Tried a virus scan... found a few infected files. Didn't seem to help, since that was about half an hour ago and it just restarted on me again (this time while hitting CTRL-F5)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top