Not enough storage is available to process this command in VisualStudio 2008

前端 未结 10 899
时光取名叫无心
时光取名叫无心 2020-12-13 01:56

When I try to compile an assembly in VS 2008, I got (occasionally, usually after 2-3 hours of work with the project) the following error

Metadata file \'[nam         


        
相关标签:
10条回答
  • 2020-12-13 02:38

    In my case the following fix helped: http://confluence.jetbrains.net/display/ReSharper/OutOfMemoryException+Fix

    0 讨论(0)
  • 2020-12-13 02:39

    As Anthony pointed out, the error message is a bit misleading. The issue is less about how big your assembly is and more about how much contiguous memory is available.

    The problem is likely not really the size of your assembly. It's much more likely that something inside of Visual Studio is fragmenting memory to the point that a build cannot complete. The usual suspects for this type of problem are

    1. Too many projects in the solution.
    2. Third party add-ins

    If you have more than say 10 projects in the solution. Try breaking up the solution and see if that helps.

    If you have any 3rd party addins, try disabling them one at a time and seeing if the problem goes away.

    0 讨论(0)
  • 2020-12-13 02:40

    If you are just interested to make it work then restart your computer and it will work like a charm. I Had same kind of error in my application and then after reading all of the answer here at stackoverflow, I decided to first restart my computer before doing any other modifications. And it saved me a lot of time.

    0 讨论(0)
  • 2020-12-13 02:42

    I also faced the same problem. Make sure that the windows os is with 64bit. I switched to windows 64bit from windows 32bit. I problem got solved.

    0 讨论(0)
  • 2020-12-13 02:43

    Another cause for this problem can be using too many typed datasets via the designer. or other types that can be instaniated via a designer like lots of databound controls on lots of forms. I imagine your the sort of hardcore programmer though who wouldn't drag n' drop a DS! :D

    in relation to your problem, Bogdan, have you tried to reproduce the problem w/o your c++ component loaded? If you can't then maybe its this. How are you loading the component? have you tried other techniques like late binding, etc? any difference?

    Additional: Yes you are right, the other culprits are lots of controls on the form. I once saw this same issue with a dev that had imported a very VB6 app over to .net. he had literally 100's of forms. He would get periodic crashing of the IDE after a couple of hours. I'm pretty sure it was thread exhaustion. It might be worth setting up a vanilla box w/ no addins loaded just to rule addins out, but my guess is you are just hitting the wall in terms of a combined limiation of VS and your box specs. Try running Windows Vista 64bit and install some extra RAM modules.

    0 讨论(0)
  • 2020-12-13 02:48

    If memory usage and VM size is small for devenv. Explicitly kill "ALL" instances of devenv.exe running.

    I had 3 devenv.exe running where as I had two instances of Visual studion opened in front.

    That was solution in my case.

    0 讨论(0)
提交回复
热议问题