Thread: my tic-tac-toe game

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    126

    Question 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.


    Thanks

  2. #2
    Used Registerer jdinger's Avatar
    Join Date
    Feb 2002
    Posts
    1,065
    Your running out of virtual memory. Post your code so we might be able to see where your memory leak is.

  3. #3
    Rambling Man
    Join Date
    Jan 2002
    Posts
    1,050
    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).

  4. #4
    Registered User
    Join Date
    Dec 2001
    Posts
    126
    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.

  5. #5
    Used Registerer jdinger's Avatar
    Join Date
    Feb 2002
    Posts
    1,065
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Tic Tac Toe game
    By nafix in forum C Programming
    Replies: 6
    Last Post: 11-10-2007, 01:45 PM
  2. tic tac toe crashes :(
    By stien in forum Game Programming
    Replies: 4
    Last Post: 05-13-2007, 06:25 PM
  3. 2D RPG Online Game Project. 30% Complete. To be released and marketed.
    By drallstars in forum Projects and Job Recruitment
    Replies: 2
    Last Post: 10-28-2006, 12:48 AM
  4. tic tac toe AI roadblock >:-(|)
    By dark_rocket in forum Game Programming
    Replies: 5
    Last Post: 06-12-2006, 05:13 AM
  5. not 3x3 tic tac toe game AI
    By Unregistered in forum Game Programming
    Replies: 9
    Last Post: 08-29-2001, 04:02 AM