Vb.net stops responding

cwang

New member
Joined
Jul 15, 2021
Messages
1
Programming Experience
1-3
Inam Chencho Wangdi and quit recently i have downloaded Visual Basic.NET 2019 and practicing coding on vb.net. The problem i face is after some time the system stops responding to the changes i made in coding and system functions on the old code though i have already deleted and changed the code. So i have to delete the entire project and start from the scratch again and again. Please help me.
 
Deleting the project and starting again was very much the wrong thing to do. What you describe is almost certainly not an issue with Visual Studio but with your own code. You most likely have build errors so when you attempt to run your project, it fails to build and then an old version of the EXE from the last successful build is what runs. When the build fails, the default behaviour is for VS to prompt you whether to run the last successful build output and it is possible at that point to say yes and to tell VS to do so without prompting in future. It's quite possible that that's what you did and now your code just keeps failing to build and you keep running the old output.

You should pay attention when you build - that happens automatically if you change the code and then run the project - to see whether it is successful or not. You should also open the Error List window to se if any build errors are listed there. You can also delete the bin and obj folders from the project folder so that no old output remains and then you cannot possibly run that output without intending to, so you'll know for sure whether your build is failing.

If what I described is not the case then what you're seeing is not normal behaviour and your VS installation is broken. There's no switch to throw to unbreak it. You need to fix it. That's exactly why the VS installer provides a Repair option, which is basically a reinstall in place, as opposed to separate uninstall and reinstall operations, which would require you to select all the installation options again. If the issue is not your code but the IDE, that is what you should do.
 
By the way, your title appears to be inaccurate. To say that an application stops responding is to say that it freezes. It doesn't sound like that is what's happening at all. That it fails to build successfully is very different.
 
Back
Top