If you're experiencing frequent “insufficient memory” errors when doing small cut or copy operations in Visual Studio 2010 RTM, please download this patch to see whether it resolves the issue. Scott Gu said in his blog that this is Patch for VS 2010 Find and Replace Dialog Growing.
The message looked like this. I figured it would have been fixed by the time the RTM came out, but not so. The problem occurs after Visual Studio has been running for maybe a day or overnight. Upon highlighting some text and attempting a "copy" (Ctrl-C), I get this 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.”
What are the symptoms of this bug?
Attempting to cut or copy small to moderate amounts of text in Visual Studio 2010 RTM may incorrectly cause the following 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." You can see the memory usage of the devenv.exe instances I have opened. The highlighted instance is where I’m currently getting the error.
How can I fix it?
There is a patch available for this issue in VS 2010 RTM.
Anything else I should know?
Please note that both before and after hotfix installation, there are cases where Visual Studio accurately reports that not enough memory is available to complete a given operation. You may still see out of memory dialogs when attempting to make a very large cut or copy (50+ MB of data at once). However, the fix should ensure that Visual Studio is legitimately unable to find enough memory to execute such a large operation before displaying this dialog. The frequency of such a dialog should be dramatically decreased after installing the hotfix.
What if I still have questions?
If you have any questions about this issue, please feel free to post in the comments below. If you’re experiencing problems with cut, copy, and paste that do not involve this “insufficient memory” dialog, or if you’re seeing “insufficient memory” dialogs in cases other than cut/copy/paste, the root cause is likely different. For issues like this, please file a Connect bug and we’ll investigate.
ne of the top reported Microsoft Connect issues with VS 2010 has been an issue with the Find and Replace dialog – which grows 16px each time you use it (which is pretty annoying). The Visual Studio team recently Insufficient memory error in Visual Studio 2010 released a patch that fixes this issue. You can download and apply it Insufficient memory error in Visual Studio 2010.
One of the top reported Microsoft Connect issues with VS 2010 has been an issue where context menus scroll even when there is sufficient screen real estate to show the menu in its entirely (with no scrolling required).The VS and WPF teams issued public hotfixes today that you can download to fix this issue. You can learn more and download them Insufficient memory error in Visual Studio 2010.
You can review my previous posts about other public VS 2010 hotfixes that are available below: