Considering this code snippet:
For the destructor method, it got the following 'Segmentation fault (core dumped)' error:
So the question is
1) is that allow to call the destructor (to cleanup) of the consumer and then create a new one theoretically? And why we see those error?
2) For EMA C++, is that true the handler (onRefreshMsg, onStatusMsg,...,) logic runs in a separate thread other that the 'main' thread?
3) Is there any case that EMA cannot recover the connection and quit the application (even set the attemptLimit = -1)?
4) In the case of Login Stream CLOSED due to some issue, does the application need to destroy the old consumer and create a new one, how to do that in the onStatusMsg method implementation?