Heap limit error???
When compiling a my script I get the following error:
c:\program files\microsoft visual studio\vc98\include\ostream(286) : fatal error C1076: compiler limit : internal heap limit reached; use /Zm to specify a higher limit
The compiler I am using is MicroSoft Visual 6.0 standard edition
when I double click the error message and go to the line of error in question it appears to take me to the ostream header file, and I am lost at that point.......
Anyone have any clues as to how I can increase this heap limit...???
does your program have a recursive function or a container (array, list, whatever) with a large number of elements?
also, are you including any of your own .h files? if so, make sure you are using #ifndef, #define, and #endif so the files only get included once.
Yes, the code uses a input from file to using an array of strings to do comparisons. The code is quite lengthy. I initially tried creating a header file to put my variances in of repedive code there and not make my source code look so chaotic, but when it failed with the heap error, I moved it to simple function calls within the same workspace. this returned the same error. I was able to get around the error by commenting out the last function I call. Apparently I created a few lines of code to many and it is not happy with my inefficient - repeditive code.....
Oh by the way elad... I finally got my looping problem fixed, I took your suggestion and went back to psuedo and was able to fix my logic errors, with the aid of what you said about how the eof is being read to terminate my loop. I still used fin>>ws; which referrs to eat up all "white spaces" outside my loops to force the eof bit on once there was no more data. But your comments on eof and how it worked are what made that possible - thanks-
I am using my .h file, but I am quite new to that, so I will reseach the #endif #ifndef and #define I'm not sure what they do so I need to read up on that, thanks for the tip, I'll start reading....:D
here's a quick example. say you have a .h file that gets included by more than one of your other files. you dont actually want that file compiled into your program more than once so you do the following to prevent it.
that way when it gets included the first time, MYFILE_H gets defined, the next time the compiler encounters #include "myfile.h", it knows that MYFILE_H is defined and the file does not need to be included again.
// all your code goes here
rock on thanks
I just went through 3 different intro books and not one had a good example for me, that helps explain what I read, thanks again