Out of memory error'TIC TAC TOE GAME'

Actually, I am making a simple 'TIC TAC TOE' game in c++ language... with simple looping and if-else statement...
The problem is that My program is going to be very lengthy ...when I run this program ...they show me an error message that "out of memory" yes this is just because of my long program....
Please give me a solution in which I can run my program in this turbo c++ or any other software but in c language.
And also send me link from where i can download the software on this.
My system configuration is (window 8.1, 64 bit)
Please answer me as soon as possible...
Thanks in advance...
Mahi verma
Holy shit, you did something terrible wrong...
show us your code so we can help you, we won't make the whole programm for you
Thanks for reply me...
But i can't share my code with you...
If you have any solution....how can I solve "out of memory error in c++" or something related to solve this problem...
Please let me know....
Waiting for reply...
:(
Check out the allocations in the program, especially the 'new'-ing arrays.
Print the amount of items you're about to allocate, check if they are too big.
Also check if you've delete the allocated memory.
Last edited on
How many pointers do you use? Do you free them? Also how many "new" keywords do you use?
Also try: http://www.cprogramming.com/debugging/valgrind.html
Thanks for reply me...
But i can't share my code with you...
If you have any solution....how can I solve "out of memory error in c++" or something related to solve this problem...
Please let me know....
Waiting for reply...
:(

Why can't you share the code?
We wont be able to help you to fix your code without seeing it

I've never had this problem before so I can't help you without your code.
My best bet is, like the others said, that you try to make your own memory management with raw pointers but that you forget to delete your stuff...
It's probably either that or I believe I've had that error by assigning a mass of things on the stack in an (accidentally) massive array, but without your code we can't be sure.
yeah, something like this probably wont work:
int arr[10000][10000][10000]
Turbo C++ on w8.1 x64?
Too much sadism in this world
Topic archived. No new replies allowed.