I tried entering the indicated line of code...
Code:
...into the 'main' function, as follows:
Code:
int main(int argc, char* argv[]) {
long __stack = 512000;
std::cout << engine_info() << std::endl;
UCI::init(Options);
Bitboards::init();
Position::init();
Bitbases::init_kpk();
Search::init();
Pawns::init();
Eval::init();
Threads.init();
TT.resize(Options["Hash"]);
UCI::loop(argc, argv);
Threads.exit();
}
It does not seem to work. The only thing I got was a compiler message 'warning: unused variable __stack'. I probably didn't quite understand how that line of code was to be used.
Instead, the ixstack command seems to have solved the problem: after executing it on the executable file, Stockfish no longer had any problems. No crashes when computing moves. It quits correctly on the 'quit' command (which always caused a crash before). I will continue to do more tests to make sure that there aren't problems anymore, however I think the problem is solved. Thank you for your help!