-
heap limit
I am trying to run a program of mine, but I keep getting an error.
Compiler limit: internal heap limit reached; use /Zm to specify a higher limit
I was wondering if anyone out there could help me in fixing this problem, so that I can run my program.
-
The answer is in the error message
"use /Zm to specify a higher limit"
Read the manual page for Zm would be the next step
Then put a suitable Zm into your compiler setup
-
If anyone else has anything helpful to add, please do. Thanks.
-
>If anyone else has anything helpful to add, please do. Thanks.
Generally, Salem has the last word. You probably won't get any more additions. Follow his advice.
-Prelude
-
Thanks for the advice, I think that I will.
-
Does your program make lots of calls to malloc or new? How many times are these being called and how big are the items you are trying to allocate? Are there points in your program where you should be freeing up unused memory back to the system but aren't? Are you protecting yourself by checking the value of the pointers after calls to new or malloc? If not, then you should add some code that does check so you can then exit gracefully.
-
Thanks for the tips, I'll check it out.