Results 1 to 6 of 6

Thread: fatal error C1060: compiler is out of heap space in visual studio

  1. #1
    Join Date
    May 2011
    Posts
    368

    fatal error C1060: compiler is out of heap space in visual studio

    Hi friends, I’m using VC7 .when I compile my program I got an error saying fatal error C1060: compiler is out of heap space and error message C1076: "compiler limit: internal heap limit reached. I know I have to add more space for heap so I had change the setting of my project, to do this I had use /Zm1000 and even /Zm2000 but still I’m getting the same error. Any clues regarding this will be surely appreciated? Thanks in advance.

  2. #2
    Join Date
    May 2009
    Posts
    527

    Re: fatal error C1060: compiler is out of heap space in visual studio

    Even I was facing the same problem ,/ZM 1000 is usually use to set it to maximum size 1000x, and I had use /Zm200 which fix my problem temporary as my code module which is hardcoded bitmap for logo and was too huge later I had update my code and made it short. The maximum size of VC6 is 2000 and same for VC7, why you need two gigs heap space it’s too big or maybe your not having that much space in your hard drive that’s why it’s not getting increase.

  3. #3
    Join Date
    Apr 2009
    Posts
    488

    Re: fatal error C1060: compiler is out of heap space in visual studio

    Hey guys, I got few information regarding this error. The /ZM option is use to specify the compiler memory and allocate the limit to it. Its default value is 100 which are 100% which can be maximized till 2000. The total size heap required is 105mb for a single heap and compiler can only execute only 1 heap at a time so memory is allocated as they need. 105mb is sufficient for a heap and which is rarely exceeded these limit and for /Zm200 the total heap size is 210MB.

  4. #4
    Join Date
    May 2009
    Posts
    539

    Re: fatal error C1060: compiler is out of heap space in visual studio

    Hello, it is one of the infamous errors of Microsoft. Use switch for /ZM and keep playing in between 100 to 1000(i.e. /Zm100). You can do this manually in VC++ 1ST GOTO project and then setting in that click on link tab and add the value in the project option window and if you still face the same problem then you must edit .DSP file directly and be careful while editing .DSP take a backup of it. Surely your problem will be solved with this.

  5. #5
    Join Date
    Mar 2010
    Posts
    154

    Re: fatal error C1060: compiler is out of heap space in visual studio

    Even I was having the similar problem but I’m using visual studio 2010. Just check if u have /MP, if so then turn it off by clicking on project then properties in properties go to Configuration Properties and then C++ in that go to general in that u will see Multi-processor compilation from there you can turn it off. The concurrency of same project file is same and is compiling consecutively when /MP is off. This will surely help you a lot.

  6. #6
    Join Date
    May 2009
    Posts
    543

    Re: fatal error C1060: compiler is out of heap space in visual studio

    Hey, the template file is separate file for each project so you have to control the build concurrency by determining artificial dependencies for differences in them. /zm400 is working in my project. Microsoft support team told me that VC7 other then VC7.1 has few drawback in that area and over /ZM800 doesn’t work properly as it is not patch for it but this issue had being solve in the version VC7.1 and use compiler option if you get an error message C1076: "compiler limit : internal heap if full" .

Similar Threads

  1. fatal error C1189: #error in visual C++
    By Aadidev in forum Software Development
    Replies: 4
    Last Post: 15-06-2011, 07:01 AM
  2. Replies: 2
    Last Post: 16-02-2011, 02:49 PM
  3. Heap Space Error in Java
    By Taylor D in forum Software Development
    Replies: 5
    Last Post: 29-01-2010, 09:57 AM
  4. Difference between Visual studio 2005 and Visual studio 2008
    By RohanS in forum Software Development
    Replies: 3
    Last Post: 12-06-2009, 10:48 AM
  5. Replies: 2
    Last Post: 12-01-2009, 08:40 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,321,628.99761 seconds with 17 queries