Boost logo

Boost Users :

Subject: Re: [Boost-users] [ASIO] Access violation on io_service::work destructor
From: Rutger ter Borg (rutger_at_[hidden])
Date: 2010-09-23 09:52:50


On 2010-09-23 15:28, Daniele Barzotti wrote:
>
> Ops..you're right!!
>
> I change my code with the following and now all seems to work as expected!
>

That's odd. You are using a static shared pointer, so I would expect the
reference count of pwork to be #objects + 1, not #objects.

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