Looks like it could be 1 of a few things. I think you'll have to look at the actual error code to get a more specific idea on what is going wrong.
bool QSharedMemoryPrivate::initKey()
{
if (!cleanHandle())
return false;
#ifndef QT_NO_SYSTEMSEMAPHORE
systemSemaphore.
setKey(QString(),
1);
systemSemaphore.setKey(key, 1);
if (systemSemaphore.error() != QSystemSemaphore::NoError) {
errorString = QSharedMemory::tr("%1: unable to set key on lock").arg(function);
switch(systemSemaphore.error()) {
case QSystemSemaphore::PermissionDenied:
error = QSharedMemory::PermissionDenied;
break;
case QSystemSemaphore::KeyError:
error = QSharedMemory::KeyError;
break;
case QSystemSemaphore::AlreadyExists:
error = QSharedMemory::AlreadyExists;
break;
case QSystemSemaphore::NotFound:
error = QSharedMemory::NotFound;
break;
case QSystemSemaphore::OutOfResources:
error = QSharedMemory::OutOfResources;
break;
case QSystemSemaphore::UnknownError:
default:
error = QSharedMemory::UnknownError;
break;
}
return false;
}
#endif
error = QSharedMemory::NoError;
return true;
}
bool QSharedMemoryPrivate::initKey()
{
if (!cleanHandle())
return false;
#ifndef QT_NO_SYSTEMSEMAPHORE
systemSemaphore.setKey(QString(), 1);
systemSemaphore.setKey(key, 1);
if (systemSemaphore.error() != QSystemSemaphore::NoError) {
QString function = QLatin1String("QSharedMemoryPrivate::initKey");
errorString = QSharedMemory::tr("%1: unable to set key on lock").arg(function);
switch(systemSemaphore.error()) {
case QSystemSemaphore::PermissionDenied:
error = QSharedMemory::PermissionDenied;
break;
case QSystemSemaphore::KeyError:
error = QSharedMemory::KeyError;
break;
case QSystemSemaphore::AlreadyExists:
error = QSharedMemory::AlreadyExists;
break;
case QSystemSemaphore::NotFound:
error = QSharedMemory::NotFound;
break;
case QSystemSemaphore::OutOfResources:
error = QSharedMemory::OutOfResources;
break;
case QSystemSemaphore::UnknownError:
default:
error = QSharedMemory::UnknownError;
break;
}
return false;
}
#endif
errorString = QString();
error = QSharedMemory::NoError;
return true;
}
To copy to clipboard, switch view to plain text mode
Bookmarks