Boost logo

Boost Users :

Subject: Re: [Boost-users] deadline_timer and a crash at ~io_service -> timer_base::destroy()
From: Vance Grkov (vanceg_at_[hidden])
Date: 2010-04-13 14:05:13


I did try delete, the exact same crash (same stack trace)

        for (std::size_t i = 0; i < timers.size(); ++i) {
            timers[i]->cancel();
            delete timers[i];
        }

> From: boost.lists_at_[hidden]
> Date: Tue, 13 Apr 2010 20:47:42 +0300
> To: boost-users_at_[hidden]
> Subject: Re: [Boost-users] deadline_timer and a crash at ~io_service -> timer_base::destroy()
>
> > for (std::size_t i = 0; i < timers.size(); ++i)
> >
> > timers[i]->cancel();
>
> What happens if you call now delete for every timer?
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
                                               
_________________________________________________________________
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
https://signup.live.com/signup.aspx?id=60969



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