Hi ,
I am using VS 2005 for an ERP project containing one window project on 4 DLL projects (BLL,DAL,BOL & Utilities).
as the size of project grows i keep getting this error message on almost every second build.
Error 333 Unexpected error writing metadata to file 'D:\RSPLGenericERP\RSPLGenericERPWin\obj\Release\RSPLGenericERP.RSPLGenericERPWin.exe' -- 'Not enough storage is available to complete this operation. ' RSPLGenericERPWin
what are the possible solutions for this error.
Loading

jingePosted Oct 23, 2009, 3:32 AM
Venkatesh EllurPosted Oct 23, 2009, 5:04 AM
1. Increase the Virtual memory of your system (Virtual memory can be double the size of your ram.)
2. Keep enough space in C:\ if your visual studio is installed in C:\
3. Check the size of your project if the Project size is more than the ram size.
naura paxPosted Oct 23, 2009, 4:57 AM
naura paxPosted Oct 23, 2009, 4:54 AM
I forgot to mention that i had tried /3GB option earlier, but somehow machine just didn't go past login page when i restarted it, and heard another rumour that it would not leave any space for Operating System to work and since its not my pc but company's i can't take such chances.
sorry to disappoint you :(
Kirtan PatelPosted Oct 23, 2009, 4:49 AM
Here is Microsoft's Response
-------------------------------------------
Thank you for contacting Microsoft Developer Support Service. My name is Leo Chen who talked with you just now.
Following is a summary of our call for your reference.
The problem: "unexpected error writing metadata to file. Not enough storage space to complete this operation", usually occurs when the project is large. The large project requires more memory usage to compile. "Not enough storage space to complete this operation" is the symptom of memory allocation failure.
The 32-bit Windows application can use 2GB address space in user mode by default. The address space is different from physical RAM. Address space is virtual memory space available to every process. Therefore, even if more physical memory is available, the process can still fail to allocate a continuous block of memory, because the memory space is fragmented.
In such situation, we need to apply the following methods:
1. Break the large project into smaller ones.
2. Use the /3GB option, so the user mode code can use 3GB address space. With the added 1GB address space, the frequency of the problem can be greatly reduced or even fixed. However, option 1 is still strongly recommended.
Following are the details of enabling the /3GB option:
1. Backup the boot.ini file. Then, put the /3GB switch in your boot.iniFor more information on the /3GB option, please check the following article:Memory Support and Windows Operating Systemshttp://www.microsoft.com/whdc/system/platform/server/PAE/PAEmem.mspx2. Make DEVENV large address aware.a. Open up a VS 2005 command promptb. Change directory to the Microsoft Visual Studio 8\Common7\IDE directory. Bc. Backup devenv.exe file.c. Type and execute the following command line:editbin /LARGEADDRESSAWARE devenv.exeReboot Windows and check if the problem persists. If you have any questions on the above information, please let me know. Thank you.
Best Regards,
Leo Chen
Microsoft Developer Support
Email: [email protected]
please check "Do you like this answer" if it helps you :)theLizardPosted Oct 23, 2009, 4:34 AM
naura paxPosted Oct 23, 2009, 4:26 AM
Its just a theory for me that these warnings will not get loaded in memory during build (as you can see in the output window). so that might do the trick to some extent.
hope you got it.
Kirtan PatelPosted Oct 23, 2009, 4:16 AM
it Can be the solution to Hide the Warning not to Solve so problem will be defiantly there because you are just Hiding Warning Rather than solving it
naura paxPosted Oct 23, 2009, 3:47 AM
Kirtan PatelPosted Oct 23, 2009, 3:16 AM
naura paxPosted Oct 23, 2009, 3:01 AM
Exactly how much will be required considering that i had cleared up disk many a times and that i cannot stop all services.
And is there any relation of number of warnings (someone pointed out i have 215 warnings and that is a problem)? Just wondering.
Kirtan PatelPosted Oct 23, 2009, 2:45 AM
Increase your RAM and Use Garbage Collecting and Object Disposal Methods in your Program .
It Arise the Error because when it runs the memory needed to Put all Objects created by Program in memory is Not Sufficient
1. Increase your RAM
2. Close Unnecessary Programs From Task manager that will also help you to Free Some Amount of Memory
3. Use Garbage Collectors and Disposal Methods after Using Object to maintain memory leaks
if it helps you please check "Do you like this answer"
jingePosted Oct 23, 2009, 2:30 AM