Possible Duplicate:
enable_shared_from_this - empty internal weak pointer?
AuthConnection::AuthConnection(boost::asio::io_service& io_service)
:Connection(io_service)
{
boost::shared_ptr<AuthHandler>h (new AuthHandler( shared_from_this() ));
this->handler=h;
}
shared_from_this() should return a ptr of Connection , but it's throwing this exception
tr1::bad_weak_ptr
i dont have a clue what's wrong here!