[Qt-interest] Endless stream of hasPendingDatagrams() errors

Joshua Senecal jgsenecal at yahoo.com
Wed Aug 26 17:20:16 CEST 2009


Hi All,

I'm continuing my debugging of client-server applications. I'm up 
against a new issue. The testing is being done with both applications 
running on the same machine, with the IP address being LocalHost. I'm 
using Qt 4.5.0.

When the server application is started first, everything is fine. When 
the client application is started first, and then the server, the 
server's console window repeatedly spits out:

QNAtiveSicketEngine::hasPendingDatagrams() was called in 
QAbstractSocket::UnconnectedState.

This one has me stumped. The error message begins dumping long before 
the server object even does anything related to network sockets. I'm 
guessing that there's something going on that Qt itself isn't liking, 
but I've been unable to track down the cause.

hasPendingDatagrams() is only used for UDP sockets, correct?

Any suggestions?

Thanks very much! As I work on the problem, as more information becomes 
available I'll post it.

-Josh



More information about the Qt-interest-old mailing list