I noticed that in Qt 4.4, you need to construct a QCoreApplication object before a QLocalServer can be used. QLocalServer::listen() does return true even if the QCoreApplication does not exist, but no connections can be made.

I have a Qt DLL which is called from non-Qt code, and there I need to use QLocalServer/QLocalSocket to communicate with a Qt program. When I create a dummy QCoreApplication in this DLL, the communication works, otherwise not. This does however seems to be a dangerous practice. I do not need QCoreApplication::exec() or any other related methods.

The same problem does not occur with TCP sockets. Anyway has any idea how to handle this nicely?