I figured out why this was happening and it wasn't related to qt creator but i can't find a way to delete this post.
Just for the odd chance someone runs into this issue. It was cause by using QSharedMemory to allow only single instance of application process to run. In Linux/Unix the shared memory did not get released after application crashed.
int main(int argc, char *argv[]) {
QSharedMemory shared
(QDir::currentPath());
if(!shared.create(512, QSharedMemory::ReadWrite)) {
Log4Qt
::Logger::logger(QLatin1String("ErrorLogger"))->info
("Application already running.");
exit(0);
}
...
}
int main(int argc, char *argv[]) {
QSharedMemory shared(QDir::currentPath());
if(!shared.create(512, QSharedMemory::ReadWrite)) {
Log4Qt::Logger::logger(QLatin1String("ErrorLogger"))->info("Application already running.");
exit(0);
}
...
}
To copy to clipboard, switch view to plain text mode
Bookmarks