开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: C++ preventing EReader reading when socket is closed


 

You are running an old version. There was a bug in the Windows version which was corrected on 5 Sep 2024 and release in the "latest" version.
?
Version 10.30.1t was released back in July 2024.
?
If you do not want to install the full latest version 10.33 you can simply modify the stop() function as follows:
?
void EReader::stop() {
? if (m_hReadThread) {
? ? m_isAlive = false;
#if defined(IB_POSIX)
? ? if (!pthread_equal(pthread_self(), m_hReadThread))
? ? ? pthread_join(m_hReadThread, NULL);
#elif defined(IB_WIN32)
? ? if (!(GetCurrentThreadId() == GetThreadId(m_hReadThread)))
? ? ? WaitForSingleObject(m_hReadThread, INFINITE);
#endif
? }
}
?
?
There is a detailed explanation for the hang in the bug fix documentation:



Join [email protected] to automatically receive all group messages.