paragui-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [paragui-users] timer destructor


From: Alexander Pipelka
Subject: Re: [paragui-users] timer destructor
Date: 03 Jul 2002 20:40:00 +0200

Am Mit, 2002-07-03 um 18.21 schrieb Keith Swyer:
> hey all, found a small bug in the destructor of the timer object.....at
> least under CW, you may want to double check on other compilers. the problem
> is that  my_timermap.erase(id) (in the removetimer) causes the app to
> freeze. the fix i used was to comment out this line and place
> my_timermap.clear() in the destructor.....however this will cause issuses if
> a user ever calls the removetimer .... that timer id won't be removed from
> the map. i'm not sure why this is even causing an error as the iterator is
> returning the id from the same map it's later trying to remove that id
> from.....

:()
Yes. That's the good old "loop through an iterator and erase elements"
bug.

> help?!
CVS will help you again :))

Thanks
Alex






reply via email to

[Prev in Thread] Current Thread [Next in Thread]