Monday, April 23, 2012

Long delays using Visual C++ 11

I recently started using the beta version of Visual C++ 11 and had several problems with it, such as when starting the debugger.

After using it for a few hours, it started getting sluggish, and then ridiculously slow: closing a file would take between 20 and 30 seconds or regular hangs for several seconds when saving or navigating a file. I found a post about a huge suo file in the project directory for Visual C++ 2008. I took a look just for fun:

A 1.9gb suo file seen in Windows Explorer next to the sdf, sln and opensdf files

Unsurprisingly, deleting it fixed the problem.

I have no idea why this happened nor how to prevent it from happening again.