Insufficient available memory to meet the expected demands of an operation at this time

Error:

Insufficient available memory to meet the expected demands of an operation at this time, possibly due to virtual address space fragmentation.  Please try again later.

 

Solution:

Visual Studio 2010 can behave crazy at times. That’s what it is doing for me today. I am trying to copy some text from Visual Studio and get this message box with the above message. It says it has insufficient available memory.  I know I have sufficient memory, so this is another crazy behavior from Visual Studio.  Another strange thing is, I have more than one instance of Visual Studio running and I see this error only in one of the instance and the other one works fine. So what exactly is happening!

It looks like it is a bug in Visual Studio 2010 and Microsoft has a patch for it. You can read Microsoft’s confessions about it here.  Insufficient Available Memory Bug in Visual Studio 2010

You can download the Patch for this bug from these links.

Cut or Copy displays 'insufficient memory' error in Visual Studio 2010

KB2251084 - Cut or Copy displays "insufficient memory" error in VS 2010

 

Hope that helps and solves the Insufficient Available Memory while Cut Copy in Visual Studio 2010.

Enjoy your experience with VS 2010.

Robert