Visual Studio 2010 (C++) highly unstable - c++

We recently moved over to Visual Studio 2010 from 2005 and the environment have turned out to be highly unstable.
I experience 10-15 crashes per day at random locations , msenv.dll and vcpkg.dll to mention a few. It can be while selecting text or compiling, not found any pattern.
The plugin we got is VisualX Assist but I doubt that there is a problem with that.
Anyone here at Stackoverflow that experience this and/or know if there is any updates to apply to a default installed VS2010 ?

My Visual Studio 2010, without any plugins, was similarly unstable when I first installed it. I got updates from Microsoft Update, and it rarely crashes now. I never bothered figuring out exactly which update was key. It might have been a driver update, or an OS update, or a .NET update.
I'm running VS2010 10.0.30319.1 on 64-bit Windows 7. It's still slow, and it occasionally becomes unresponsive for a minute or two, but it doesn't crash very often now.
If you're up-to-date, and it still crashes, I'd be very suspicious of all plugins.

Related

Visual Studio 2017 (any edition) not longer able to install or update on Windows 10

I have the problem that I cannot update or install Visual Studio anymore on my system.
Today I saw that a newer Visual Studio 2017 version was released and I tried to start the VS installer for the update process. The start for the installer was just spinning but nothing happened. After that I tried to start the installer separately from VS but it didn't work either.
So I continued to make an even bigger mistake by assuming my installed version is bad and to completely reinstall Visual Studio by uninstalling and then trying to start the normal installation process.
Unfortunately it didn't work.
After downloading the webinstaller, it downloads the installer packages it needs but the vs_installer.exe itself will never run successfully afterwards (also if started manually).
There is no error shown directly. It just does not start. The EventViewer is also not showing any errors I would say have a connection to the problem.
Any ideas? Thanks!
After a bit of communication with the Visual Studio team they pointed me to the only thing they know could cause this issue.
Some time ago I added an environment variable to my system named NODE_OPTIONS. It was necessary because the builds of our Angular applications are so big that we had to adjust the available memory size.
Removing the environment variable enabled me to start vs_installer.exe and to reinstall Visual Studio again.
It's a bit obscure and not many people will have this problem. But I hope Microsoft will fix it anyway.
P.S. The silent crash is caused by the usage of Electron for the Visual Studio installer. The person from Microsoft, who helped me to workaround the problem, told me that they are working on a fix.

Visual Studio 2017 - Prerelease software. This license has expired

Issue: Download Visual Studio Community 2017
And the login dialog says, "Prerelease software. This license has expired" even though I'm logged in with a valid account. My laptop and another PC are both running the same version linked to the same account. They work fine.
I've tried everything outlined here (#answer-47683843):
Visual Studio 2015 - Prerelease software. This license has expired
I fixed it by resetting my Windows 10 OS (https://www.laptopmag.com/articles/reset-windows-10-pc), which is kind of annoying - but it worked!
Here's my visual studio support ticket in case they ever decide to fix the issue without such an extreme approach.
Coming from a guy that spent hours reinstalling VS over and over and OVER again... And trying to come up with all kinds of workarounds with VMs and deleting registry keys, etc...
This was a way better sure-fire, fairly quick, fix compared to all that!
I've never reset my Windows 10 before this, and so far it's really not too intrusive. All my data is still on the machine, you can choose JUST to clean out your apps, and Windows settings (which I assume includes your registry).
So I'll be reinstalling a bunch of stuff... but again... it was way worth it, if you need Visual Studio 2017 working now
Hope this helps someone else out there!

Remove visual studio 2010 totally

I struggle to uninstall VS 2010. I downloaded and used first trial version for VS professionnal 2010. I uninstalled it (partially) after trial, but as I could not install and use new trial version for same product, I successfully installed VS express C++ 2010. Now trial period for this product is over as well, and I unintalled it. Now I am stuck: I can download neither VS 2010 nor VS Express 2010. How to entirely remove VS from computer (Windows 7). Thanks and regards.
I think the problem here is not so much removing it, but a miss-understanding of how the express versions work.
VC++ 2010 Express is 100% free, you do however, need to register it (it'll only allow 30 days of unregistered use), but this is free as well. if you are a student, you may consider getting the professional or ultimate versions for free off of Dreamspark or the MS Academic Alliance.
If you do want totally remove it, you can remove all the components from the windows programs manager, however, removing the trail period checks would result in circumvention of the EULA (ie: you'd be breaking the law).

Performance Profiling with Visual Studio

How can I get Visual Studio to help me optimize my application, or tell me areas of slowness? Thanks
If you have Visual Studio 2013 Professional then you can use the Performance and Diagnostics hub: http://blogs.msdn.com/b/visualstudioalm/archive/2013/07/12/performance-and-diagnostics-hub-in-visual-studio-2013.aspx . This profiler is well integrated in the IDE and I've found it really quick and easy for spotting code hotspots.
If you have the super enterprise edition it's built in (but I haven't used it - and I think it's ability to profile unmanaged code is limited)
Otherwise see What's the best free C++ profiler for Windows?
As another suggestion, I have found the AMD CodeAnalyst a great companion. It integrates with VS2010 very well, and provides detailed breakdown of CPU time on a line-to-line basis. You can zoom in and out to see from a top-level to a function-level. Not to mention it even has in-line disassembly display if you need that extra bit of information!
Totally worth a try.
The Windows SysInternals website has a number of other useful utilities for network management, security, system information and more. Check it out. I’m sure you’ll find something of value.
Here is how it helped me:
Slow Visual Studio Performance … Solved!
I had an odd performance-related issue today. My Microsoft Visual Studio seemed to be taking far too long to perform even the simplest of operations. I Googled around and tried a few ideas that people had such as disabling add-ins or clearing Visual Studio’s recent projects list but those suggestions didn’t seem to solve the problem. I remembered that the Windows SysInternals website had a tool called Process Monitor that would sniff registry and file accesses by any running program. It seemed to me that Visual Studio was up to something and Process Monitor should help me figure out what it was. I downloaded the most recent version, and after fiddling around a bit with its display filters, ran it and to my horror, I saw that Visual Studio was so slow because it was accessing the more than 10,000 folders in C:\Users\krintoul\AppData\Local\Microsoft\WebSiteCache on most IDE operations. I’m not sure why there were that many folders and moreover, wasn’t sure what Visual Studio was doing with them, but after I zipped those folders up and moved them somewhere else, Visual Studio’s performance improved tremendously.

VS2005 SP1 on Win XP crashes after loading solution with 362 projects without any error, log or trace

I am running Visual Studio 2005 on Windows XP. It crashes without any error, log or trace when I try to load the solution for our product that contains 362 projects. I don't think the size of solution (362) is a problem, because it works on my colleagues computers. There is no entry of this in Event Viewer.
Any help to locate root cause of the problem or any solution if known would be greatly appreciated.
Thanks,
Shashibhushan
Thanks Luke for your suggestion. When I debugged using windbg.exe, it became evident that the exception was being generated at the time of loading dll related to "VMDebugger - Visual Studio Integrated Virtual Machine Debugger". I disabled it from the Add-in Manager and now the solution is being loaded successfully and working fine. Thanks for all your suggestions.
Thanks,
Shashi
Just some general thougts:
Uninstall SP1 - i had several difficulties with it. I.e. i was unable to create a working x64 DLL using SP1
Try again on a different machine that so far does not have Visual Studio on it. So you know wheteher its a problem of the Machine, or maybe a general Problem of Visual Studio
Uninstall and reinstall Visual Studio.
EDIT:
If you started seeing these problems yesterday i would even more strongly suggest, to uninstall and reinstall VisualStudio as well as SP1.
Did you install any new software recently?