This exception may have several reasons. It is very unlikely that Visual Studio actually ends due to lack of memory, the system can work with limited resources. One of them is a bunch of desktop. A simple reboot will fix this.
If this happens again, use Taskmgr.exe to try and find processes that are delaying resources. Open + Select columns, checkmarks, USER objects, and GDI objects. If it is Explorer, you have the wrong shell extension handler.
Hans passant
source share