I began to see OutOfMemoryException and “Not enough storage is available to process this command” while running Visual Studio 2008 on Windows 7. It’s time to flip the 3GB switch. Here’s how it’s done.
Open a command prompt window running as Administrator. Then execute the following commands in order. Finally, restart windows.
BCDEDIT /Set IncreaseUserVa 3072
cd C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\
editbin /LARGEADDRESSAWARE devenv.exe
copy devenv.exe devenv.bak