开云体育

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

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


 

It is hard to follow what you are doing from the above code, however, you should not be calling "stop()" yourself. This is a function that is supposed to be internal to the API.
?
I see you are resetting your EReader object pointer in your code. Why? If the object is disconnected properly then this should not be required and the object can be directly reused.
?
Anyway, based on this error:

EReader::processMsgs (this=0x0) at IBUtilsCode/EReader.cpp (Segmentation Fault)
?
?
it looks like you are trying to de-reference the EReader object pointer when it has already been set to nullptr somewhere in your code.
?
?
?
?

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