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