23 Mar
2011
23 Mar
'11
6:34 a.m.
Hi:
I'm trying to use boost.bind when starting a thread.
The following code starts a thread and tries to pass in a boost.asio.io_service as well.
boost::thread* t = new boost::thread(boost::bind(&boost::asio::io_service::run, &io));
I'm getting the following exception when running this code.
Unhandled exception at 0x7c812afb in MDRLite.exe: Microsoft C++ exception: boost::exception_detail::clone_impl