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@gmail.com
> Date: Tue, 13 Apr 2010 20:47:42 +0300
> To: boost-users@lists.boost.org
> 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@lists.boost.org
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. Sign up now.