Click here to Skip to main content
14,768,449 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:

I am building a project in .Net Windows. Project is so big but it is single project in solution. Sometimes it is giving error "Not enough storage is available to complete this operation". I have already search in Google for solution and get that to change the virtual memory size but then also it do not working at all and this error is vanish after restarting the visual studio.

Another solution I found that to run a command from VS Command Prompt.....from Start > Programmes > Microsoft Visual Studio 2008 > Visual Studio Tools > Visual Studio Command Prompt and run the command editbin /LARGEADDRESSAWARE devenv.exe but it is given Permision denied error.

It comes in every 15-20 min break. and I have to restart visual studio to correct it.

What I should have to do so that it will not come again.

Thanks in advance.
Not enough information, I would say.
singh7pankaj 31-Dec-12 2:17am
Means, Sorry I do not understand . I will have to elaborate my question or some thing else.
I suggest you do. You see, this situation is far from usual, so you might need to explain it step by step how you come to this observation...

1 solution

There are a couple of things you can do:
1) Increase the available RAM, by closing other apps and / or physically adding memory.
2) Break your project into smaller units within the same solution.

Personally, I would go for the later, as it has a number of advantages:
1) Smaller units mean less of your projects need to be compiled at all, so you should get a quicker build overall.
2) Smaller units mean a cleaner, more formal set of interconnections between your classes - this should improve maintenance as well.
3) Reusability becomes easier in future, because you can just reference the relevant project in a new solution.

To be honest, if your project has reached the point where the compiler has started creaking, then it is way, way too big as a single monolithic object and needs to be broken up (or possibly redesigned) anyway!
singh7pankaj 31-Dec-12 3:17am
I have just check the RAM using in system through task manager, then I saw that 3 application of oracle is running Which I am not using right now. What I just did that I end the process of all oracle application then that error is vanished without restarting the visual studio. Then I got that there is so much of unwanted application are running in task manager.

Thank You Very Much :)
OriginalGriff 31-Dec-12 3:26am
You're welcome!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900