title: tr1::bad_weak_ptr
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4494786/enable-shared-from-this-empty-internal-weak-pointer">enable_shared_from_this - empty internal weak pointer?</a>  </p>
  </blockquote>
  
  
  
  <pre><code>AuthConnection::AuthConnection(boost::asio::io_service&amp; io_service)
      :Connection(io_service)
  {
      boost::shared_ptr&lt;AuthHandler&gt;h (new AuthHandler( shared_from_this() ));
      this-&gt;handler=h;
  }
  </code></pre>
  
  <p>shared_from_this() should return a ptr of Connection , but it's throwing this exception </p>
  
  <pre><code>tr1::bad_weak_ptr
  </code></pre>
  
  <p>i dont have a clue what's wrong here!</p>