mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-08-02 22:22:33 -04:00
This fixes the "Unable to create shared memory segment mem_qmap." error when switching Configurations on Linux.
This commit is contained in:
parent
4671b9de0b
commit
596f9ba10f
@ -471,12 +471,7 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
|
|||||||
|
|
||||||
//Attach or create a memory segment to be shared with QMAP.
|
//Attach or create a memory segment to be shared with QMAP.
|
||||||
int memSize=4096;
|
int memSize=4096;
|
||||||
if(!mem_qmap.attach()) {
|
if(!mem_qmap.attach()) mem_qmap.create(memSize);
|
||||||
if(!mem_qmap.create(memSize)) {
|
|
||||||
MessageBox::information_message (this,
|
|
||||||
"Unable to create shared memory segment mem_qmap.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
ipc_qmap = (int*)mem_qmap.data();
|
ipc_qmap = (int*)mem_qmap.data();
|
||||||
mem_qmap.lock();
|
mem_qmap.lock();
|
||||||
memset(ipc_qmap,0,memSize); //Zero all of QMAP shared memory
|
memset(ipc_qmap,0,memSize); //Zero all of QMAP shared memory
|
||||||
|
Loading…
x
Reference in New Issue
Block a user