QSharedMemory is not getting deleted on Application crash
问题 I am implementing an application using Qt C++ where I have used QSharedMemory to restrict multiple instances of the application. Relevant code segment in main.cpp is as follows, QSharedMemory sharedMemory; sharedMemory.setKey(SM_INSTANCE_KEY); if (!sharedMemory.create(1)) { QMessageBox::warning(0, "Console", "An instance of this application is already running!" ); exit(0); /* Exit, already a process is running */ } On opening the Application, I can see that a shared memory has been created