Boost logo

Boost Users :

Subject: Re: [Boost-users] Asio sharedptr heap corruption
From: Rutger ter Borg (rutger_at_[hidden])
Date: 2010-02-12 09:42:34


Lloyd wrote:
>
> class Connect:public boost::enable_shared_from_this<Connect>
> {
> ....
> }
>
> All the async calls use sharedptr()
> And the object is created like this...
>
> boost::shared_ptr<Connect> Conn=boost::shared_ptr<Connect>(new
> Connect(IoService));
>

The bug is most probably elsewhere in your code. Could you post more?

Regards,

Rutger


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net