my tic-tac-toe game
I am writing a tic-tac-toe game in microsoft visual c++ 6.0. It is almost finished, but when ever I try to run it I get an error.
Compiler limit: internal heap limit reached
I was wondering if anyone out there could help me in fixing this problem, so that I can run my program.
Your running out of virtual memory. Post your code so we might be able to see where your memory leak is.
What I don't understand is how you are almost finished writing the game and you are just now trying to compile and run the program? Well, at least so it seems that way, because I'd imagine if you were trying to execute the program throughout the creation process you would be able to notice the problem. If I'm right in assuming that you are just now trying to execute the program (this might be from the style you took in writing the program), then here is some advice for you. Try to write a program by implementing the basic parts of the game first, while doing that make sure you can continue to compile/run the program to take out errors of the program early and continously. Once you have the basic code of the game, then I would go from there in adding new stuff to the game. Come up with the 'schematics' of the code first, then implement the foundation, next fill in the rest, and last fully complete the game. IMO, this is the process you should take in creating a game (only assuming you didn't take this process...not to say that you didn't, though). :)
Throughout my creation process I most certainly did compile and run my program. It seemed to be working very well until just recently. I just started getting this error when I attempted to run the program during it's final stages of creation.
The easy answer would then be to go back to the last bit of code added before the first compile error. You should find your memory leak there.