The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
That has to be one of the coolest stories I've read.
For a minute I thought this was leading into the machine overheating, and he opened the window to allow it to cool down. Overheating was a very common problem, and still is. But the light on the photocells is waaayyy better.
Have a look at the hardware.These have a spike on "F5"
-HDD/SSD (bad sectors, a lot of writing happening)
-Memory (any issue can freeze the OS)
-Graphics card (some drivers don't really fancy VS) disable graphics acceleration on VS
It could also be the AV.
Some other options
- use notepad and command line compile
- use a hammer/basebal bat and fix the machine
Measuring programming progress by lines of code is like measuring aircraft building progress by weight.
Everything should be made as simple as possible, but not simpler.
I was thinking similarly:
- memory. Run intensive memory tests overnight. Someone posted tips elsewhere. If they don't run for hours you aren't testing thoroughly enough.
- thermal problems. there are various apps that monitor your systems thermal sensors. Check what temperatures you are running.
- HD/SSD - can you check SMART status? Check the event logs for IO errors
Try going to build settings to only allow a single build at a time. This will reduce system load quite a bit, though of course the builds will take longer. It would be interesting to see if it makes a difference. If it does I'd say it points to one of the problems above, or some similar physical issue with the machine.
Try running the same project/solution from VS but on another PC, if no problems happen, then there is something wronge in one of your computer components that make VS hang.
Remember that VS uses: HDD+RAM+CPU+GPU+LAN Controllers, to name a few, so if any one of the components have a problem, it might affect VS.
Sometimes the browsers (Chrome/firefox) get entangled with VS by a way or another.
Hope for you the best.
May god give u good health and knowledge.
Make a flash drive that boots to the memtest86 (or whatever it's called) and let it test your RAM for a while. I've seen quite a few funky PCs fail this test, replace the memory, and problems all gone.
MS employee here. I unfortunately have no connection to the VS team and am not an avid developer myself, but if you'd like a code for a free support case please let me know, I'd be happy to help get you rolling forward.
I, too, have experienced this behavior from Visual Studio for the last few months, both 2015 and 2017. I have yet to find a solution; however, it seems to help when I take the time to reboot the PC every 10 to 12 debug sessions. The trouble is that I tend to get wrapped up in the task at hand, and forget to do the reboots!
I assume that there is something in my PC environment that is causing this, and would love to hear of any solutions anyone out there comes up with.
Sometimes I build first, and then use F5. At other times I just use F5. In both cases the build either completes (sometimes with errors) or the hang occurs. I have not seen it with a different project, but I am building this one quite frequently.
This is a stretch, but when I am having weird system problems I sometimes go to event viewer and look at Windows Logs --> System Logs. Disk errors and other ephemera may show up around the time you had the Visual Studio problems.