Jump to content
Sign in to follow this  
pustekuchen

Exception at win_mutex::lock in WebSocket++

Recommended Posts

Hello folks,

 

at the moment i'm trying to create an delphi application which uses a C++-Package with some C++ Projects.

 

  • Boost 1.79
  • openssl (master)
  • Asio 1.18.2
  • websocketpp 0.8.2

 

The Problem is that exception appear while locking a mutex. Most times there is no problem.

The destructor is called after running through do_dispatch where the mutex will be locked and unlocked. At some point after calling op->complete the mutex seems to be broken/uninitialized and the next lock will cause the exception.

 

What could cause this behavior?

 

A normal C++-Application with nearly the same code is working fine.

 

I'm compiling with ASIO_STANDALONE, _WEBSOCKETPP_NO_CPP11_FUNCTIONAL_ (this is needed because the bcc32c have a problem with std::bind)

Quote

[bcc32c Fehler] tuple(296): no member named 'value' in 'std::is_convertible<const std::tuple<std::function<void (const std::error_code &)> > &, std::function<void (const std::error_code &)> >'

 

with kind regards

Marc

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×