This time of the year

This time of the year

Last year around this time of the year I already had resigned from GMIT, figuring out what to do with myself, Thiago finished his new networking classes, Simon integrated most of it into WebKit at around FOSS.IN, we fixed the regressions of the layout test suite and I was tracing down bugs with SSL, a Cookie issue on yahoo mail, a crash on gmail… This year things look awfully similar. I know a little better what to do with myself, I have fixed a funny issue of QNetworkAccessCache (a new class in Qt4.5) breaking JavaScript sunspider benchmark.

If you write code that is using QObject::startTimer and not use QObject::killTimer you leak a timer. But if you manage to call QObject::killTimer twice chances are you have killed a timer belonging to someone else. To be safe you would have to reset the timerId you saved to an invalid timerId. The resulting code will look ugly though, but Qt to rescue! There is a shiny new class in Qt4.0 called QBasicTimer. It should not add any overhead and will avoid the above issue.

Comments are closed.