Why would using "qDebug() << someValue;" cause gdb in Eclipse to hang with "(Running : User Request)"?
-
Hello all,
I'm trying to print out availableMibs() using this loop...
@QList<int> myAvailableMibs = QTextCodec::availableMibs();for (i = 0; i < myAvailableMibs.size(); i++) {
currentCodec = QTextCodec::codecForMib(myAvailableMibs.at(i));
qDebug() << myAvailableMibs.at(i) << "=" << currentCodec->name();
}@
...which is in a static method in a user-defined class which is called by my main().When I run the PE from the command line it works fine. However when I try and run it in Eclipse with the MinGW gdb it runs up until a certain index in myAvailableMibs then the thread goes into a
@Thread[1] 0 (Running : User Request)@
state which it never returns from.
@qDebug();@
...on its own returns fine so I believe its something to do with the << operator. Changing the number of << operators used in that statement changes the position in the QList at which it enters the "(Running : User Request)" state, but I can't find any direct correlation between the number of << operators and the position in the QList.The only clue I can see is is the
@Thread[1] 0 (Running : User Request)@
message in the Debug panel. I am actually trying to solve another problem with actual Mib values which this is hindering.Does anyone have any thoughts or suggestions (other than don't use the gdb in Eclipse)?
Many thanks,
Sam[EDIT: code formatting for error to avoid superscript, Volker]