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


jingeRank #2,527 · 554 reputationPosted Oct 22, 2009, 11:32 PM EDT
// pragma_warning.cs using System; #pragma warning disable 414, 3021 [CLSCompliant(false)] public class C { int i = 1; static void Main() { } } #pragma warning restore 3021 [CLSCompliant(false)] // CS3021 public class D { int i = 1; public static void F() { } }jingeRank #2,527 · 554 reputationPosted Oct 22, 2009, 10:30 PM EDT
Kirtan PatelRank #292 · 8.6K reputationPosted Oct 22, 2009, 10:45 PM EDT
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"
naura paxRank #2,843 · 502 reputationPosted Oct 22, 2009, 11:01 PM EDT
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 PatelRank #292 · 8.6K reputationPosted Oct 22, 2009, 11:16 PM EDT
naura paxRank #2,843 · 502 reputationPosted Oct 22, 2009, 11:47 PM EDT
Kirtan PatelRank #292 · 8.6K reputationPosted Oct 23, 2009, 12:16 AM EDT
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 paxRank #2,843 · 502 reputationPosted Oct 23, 2009, 12:26 AM EDT
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.
theLizardRank #1,079 · 1.8K reputationPosted Oct 23, 2009, 12:34 AM EDT
Kirtan PatelRank #292 · 8.6K reputationPosted Oct 23, 2009, 12:49 AM EDT
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:
Reboot 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 :)naura paxRank #2,843 · 502 reputationPosted Oct 23, 2009, 12:54 AM EDT
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 :(
naura paxRank #2,843 · 502 reputationPosted Oct 23, 2009, 12:57 AM EDT
Venkatesh Ellur30 reputationPosted Oct 23, 2009, 1:04 AM EDT
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.