Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Visual Studio restarts computer

Hi everyone, I don't know if it's the correct part of the forum to post, if this post belongs to somewhere else, sorry.

I have a strange, really strange and frustrating problem:

I have Visual Studio and it randomly restarts computer when I try to save or compile. Today, it just restarted my PC for three times when I tried to save or compile the project.

I have now VS 2005, but there was exactly the same problem with VS .NET 2003 too.

I click/press save or compile and my PC crashes for half a second, music repeats the same part, screen goes blank for another half and it just restarts. Sometimes there is a blue screen at that moment but it only takes milliseconds, reading something there is impossible. Doesn't mater if it's C++ or VB, it occurs at each. I have Windows XP Media Center Edition, and there aren't any viruses or spyware, as I scan my PC with up-to-date AV software.

Thanks;
Can.
[975 byte] By [can16358p] at [2007-11-11 7:18:45]
# 1 Re: Visual Studio restarts computer
Could be a bad device driver or RAM chip. I recommend that you configure your system to do a crash dump when a blue screen occurs; sometimes that will tell you which process caused the crash. See http://support.microsoft.com/kb/308538/EN-US/ for more information.
Phil Weber at 2007-11-11 21:49:18 >
# 2 Re: Visual Studio restarts computer
This only happens in VS, and completely RANDOMLY happens.

Wouldn't there be crashes outside VS if there was a problem in RAM?

I'll try that Dr. Watson thing anyway.
can16358p at 2007-11-11 21:50:18 >
# 3 Re: Visual Studio restarts computer
I've enabled dumping, I did everything OK, but it doesn't create a dump file, it doesn't append to the log file which is last modified before 1 month ago.
can16358p at 2007-11-11 21:51:23 >
# 4 Re: Visual Studio restarts computer
Right-click on My Computer and select Properties. Then click on the Advanced tab and click the Settings button under Startup and Recovery. What are the System Failure settings? In addition to writing a small or kernel memory dump, you might uncheck "Automatically restart"; this will allow you to read and record the BSOD before the system reboots.

Also, don't rely on the date/time stamp of the Dr. Watson log file. Actually open the file and check the date and time of the last entry.
Phil Weber at 2007-11-11 21:52:17 >
# 5 Re: Visual Studio restarts computer
Everything is exactly as it should be. It seems more like a hardware failure than a software crash, but why does it only happen only in VS? Why doesn't it happen when I'm rendering 3ds max scenes for hours at 100% CPU usage and hundreds of MB of RAM is used?

I checked the last entry, no hope.
can16358p at 2007-11-11 21:53:22 >
# 6 Re: Visual Studio restarts computer
I've got exactly the same problem. This only happens when I try to save, debug or release asp.net projects from visual studio 2003.
Actually its not a hardware problem since for 2 weeks I just rendered some 3ds, played some game and some other small tasks and the computer never restarted. I compiled with visual studio again and saving like 4 times it restarted.
Btw its not a nice situation when for 10 times in like 5 hrs you will loose your last 10 minutes work each time.

ps i got windows xp profesional, 1GB Ram 3ghz Ht Intel, but this problem never happened before.
Kevifarr at 2007-11-11 21:54:21 >
# 7 Re: Visual Studio restarts computer
Oh, it can be with the processor, I have exactly 4Ghz intel p4 ht too.

Did you find any solution to it? It may be about HT as it shows the PC like it has 2 processors??
can16358p at 2007-11-11 21:55:23 >
# 8 Re: Visual Studio restarts computer
I haven't found a good solution till now. When i am fed up of restarting i might do a format. probably that will solve the problem
Kevifarr at 2007-11-11 21:56:26 >
# 9 Re: Visual Studio restarts computer
I hate to be the bearer of bad news. I had that problem with VS2003 and wound up having to completely uninstall it, and defrag the hd before I reinstalled. I think that during the initial install, I was doing something else while the install was going on in the background and it must have skipped writing something to the registry. So, on the reinstall, I gave the whole machine to the process.
R3dD0g at 2007-11-11 21:57:23 >
# 10 Re: Visual Studio restarts computer
Did you have exactly the same problerm before and never have it again now?

If yes, I'll try (I wanted to be sure, as uninstalling and reinstalling VS is not something short :) )

Anyway, I still don't get why it "randomly" happens.

/ps: what is your processor?
can16358p at 2007-11-11 21:58:30 >
# 11 Re: Visual Studio restarts computer
Yes, it did fix the problem. I've moved on to VS2k5 now, but VS2k3 was stable after that.

Clarification, I'm not saying reformat the hd, just defrag. And don't do anything with the machine during the reinstall, no email, no Pam Anderson :) , etc.
R3dD0g at 2007-11-11 21:59:28 >
# 12 Re: Visual Studio restarts computer
The Problem Is Completely Solved!

Reason of the problem (don't say "how come..?", it's a bit weird but true) is ZoneAlarm!

Uninstalling ZoneAlarm has solved the problem, it's incompatibility of it with VS, by creating a system file vsdatant.sys (if I didn't google that I wouldn't even guess it was something to do with ZA :D) and creating page fault errors that cause a blue screen. I got the blue screen by the dump option, thanks for everybody for helping, special thanks for telling me to dump memory, as it was the only way to see that bluescreen.
can16358p at 2007-11-11 22:00:32 >