Kali
14-11-2007 12:24:49
I've taken the liberty of finding the problem.
QuickGUIConsole.cpp:57
removeItem does remove the first item but numLinesOfText is never decreased so it goes on to remove the next and ends up in an endless loop. it should be:
QuickGUIConsole.cpp:57
int numLinesOfText = mTextList->getNumberOfItems();
while(numLinesOfText > mMaxLines)
mTextList->removeItem(0);
removeItem does remove the first item but numLinesOfText is never decreased so it goes on to remove the next and ends up in an endless loop. it should be:
int numLinesOfText = mTextList->getNumberOfItems();
while(numLinesOfText > mMaxLines) {
mTextList->removeItem(0);
numLinesOfText--;
}