question

oliverd-5353 avatar image
0 Votes"
oliverd-5353 asked DennisPiepel-4403 commented

Visual Studio always hangs and freezes

I'm running Visual Studio Community 2019 on Windows 10 Home 20H2.

Whenever I try and do anything, such as create a new WinForm or rename something, it might hang or completely freeze, and then I get a 'Visual Studio Delay Notification'. It's really annoying, as I would like to make my programs without interruptions, so any advice is appreciated.

My specifications are as follows:
AMD A9-9425 CPU
4GB RAM
1TB HDD
Lenovo Laptop Brand

69094-image.png
69114-image.png


vs-general
image.png (18.8 KiB)
image.png (55.1 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

vb2ae avatar image
1 Vote"
vb2ae answered ArtHansen-4605 commented

Looking at recommended system specs. I see your processor should be fast enough. Min ram is 2 gigs but it recommends 8 gigs. It also recommends having an SSD hard drive.


https://docs.microsoft.com/en-us/visualstudio/releases/2019/system-requirements




I would also recommend updating your antivirus (windows defender included) to not scan the folder your solution is in

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for the recommendations, I'll try that now (update antivirus with exception to my projects folder, in my case Avast) and update if it resolves.

0 Votes 0 ·

setting all VS folders as Defender exclusions solved the problem for me.

0 Votes 0 ·
TianyuSun-MSFT avatar image
0 Votes"
TianyuSun-MSFT answered

Hello @oliverd-5353 ,

Welcome to Microsoft Q&A forum.

If you try to launch VS in safe mode(run devenv /SafeMode in Developer Command Prompt for VS 2019), will Visual Studio hang and freeze again?

Besides, did you change some settings in Visual Studio, for example in Tools > Options… or in Project Properties… and did you download and install some third-party extensions? If you installed some of them, please kindly try to disable them temporarily from Extensions > Manage Extensions > Installed > Disable and then restart VS 2019. I also suggest you try to repair and update VS.

Best Regards,
Tianyu


If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DuaneArnold-0443 avatar image
0 Votes"
DuaneArnold-0443 answered DennisPiepel-4403 commented

It could be that the Windows O/S page file setting is not at an optimal setting and page trashing is happening that could cause VS to hang.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

It is not helpful to say that the Windows O/S page file setting is not optimal and then NOT explain how to check that or how to fix it.

0 Votes 0 ·