On Sat, 30 Mar 2002, Henrik Persson wrote: > On Sat, 30 Mar 2002 10:06:48 -0500 > Likai Liu <[EMAIL PROTECTED]> wrote: > > > > > > > >I just upgraded QT from 2.whatever to 3.0.3 and guess what! Now I've got all >those second-long 100%cpu-consuming thingies all the RedHat users are talking about >on this list ;P > > > > > if you get this 100% CPU for a second or two after running licq for > > hours, then what we have here is very likely a memory leak issue > > (probably somewhere in the event queue, since this is where server > > packets come and leave all the times). I think somebody talked about > > this before? sorry, if I'm also not making sense, that's because I just > > woke up. It's not necessarily better than just before going to sleep. ;-) > > > > liulk > > Hmm.. I get them sometimes when I reply to someones message.. Other times just it >just happens without me doing anything.. It could be something in the eventqueue..
This has already been discussed. The problem lies in the log window, where after the first 500 lines, every 64 lines recorded after that there's the freeze and CPU usage. This is only a problem in QT3 because in this version of QT, the textbox class QMultiLineEdit has been obsoleted, and a (AFAICT) buggy or inefficient wrapper to the new QTextEdit has been included for backwards compatibility. Anyhow, for a quick and dirty fix, remove the following lines from outputwin.cpp: outputwin.cpp line 84 if (outputBox->numLines() > 564) { while (outputBox->numLines() > 500) outputBox->removeLine(0); } Your log window will continue growing indefinitely, but at least you won't get any freezes. You could probably change that bit so that it completely wipes the log window every 500 lines or whatever, but that's still not a perfect solution. The long term solution, I think, would be to replace every use of QMultiLineEdit with QTextEdit - this is a bit messy while still supporting QT2, however. Cheers, Tom. _______________________________________________ Licq-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/licq-devel