I am developing a “pyramid” game that uses a Minimax tree that searches for the “best” move .. but my game is freezing.
My deduction is that it’s a memory problem but I am using only 124kb of memory. How much memory can I allocate with the new operator? Or, what is the memory limit assigned to my application by default.
The OS does decide how much memory you’ll be able to allocate at each given time, making your question impossible to answer.
I would be you, I would show the faulty code instead of thinking it’s the compiler or the environnement that does something wrong. 124kb is nothing on most platforms.
If it’s not throwing a bad_alloc, I really doubt your new call will fail. It’s certainly not the real problem.