Boost Throws an exception on termination of the program
Posted: 30 Oct 2014, 14:02
Hi
I receive the following error:
when I call:
More precisely this is where the exception is thrown:
in gazeapi_socket.cpp
----------
I guess one of the threads is still live after the socket is destroyed and tries to use it.
Has anyone faced such a problem? any solutions??!!!
//
I used the sdk in the GitHub and the example in the devs (http://dev.theeyetribe.com/cpp/) page.
I use Qt's MinGW to build the project.
I receive the following error:
terminate called after throwing an instance of 'boost::exception_detail::clone_i
mpl<boost::exception_detail::error_info_injector<boost::system::system_error> >'
what(): close: An operation was attempted on something that is not a socket
when I call:
- Code: Select all
MyGaze::~MyGaze()
{
m_api.remove_listener( *this );
m_api.disconnect();
}
More precisely this is where the exception is thrown:
in gazeapi_socket.cpp
- Code: Select all
Socket::~Socket()
{
if (m_thread.joinable())
{
m_thread.join();
}
}
----------
I guess one of the threads is still live after the socket is destroyed and tries to use it.
Has anyone faced such a problem? any solutions??!!!
//
I used the sdk in the GitHub and the example in the devs (http://dev.theeyetribe.com/cpp/) page.
I use Qt's MinGW to build the project.