From 031832222d7c2c815593ccfe88768cd8c07f23c1 Mon Sep 17 00:00:00 2001 From: Andras Tantos Date: Sat, 13 Mar 2021 03:53:56 +0000 Subject: [PATCH] Fixed (?) stack overflow in console code. I've commented the loop out that was causing the infinite recursion. Not sure why the code was there, I thought it had to do with sluggish console. I don't see that though with the code removed, so let's hope this is sufficient. That would be easy... --- simulator/sim_lib/console.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/simulator/sim_lib/console.cpp b/simulator/sim_lib/console.cpp index 6040033..1a52185 100644 --- a/simulator/sim_lib/console.cpp +++ b/simulator/sim_lib/console.cpp @@ -112,10 +112,10 @@ void Console_c::SendFromQueue() { boost::asio::buffer(Head.mData), boost::bind(&Console_c::WriteHandler, this, boost::asio::placeholders::error) ); - for (int i = 0; i < 100; ++i) { - mIoService.reset(); - mIoService.poll(); - } + //for (int i = 0; i < 100; ++i) { + // mIoService.reset(); + // mIoService.poll(); + //} } catch (boost::system::system_error &) { CloseSocket();