Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P2: Important
-
Resolution: Invalid
-
Affects Version/s: 5.12.4, 5.13.0
-
Fix Version/s: None
-
Component/s: Core: I/O, Examples and Demos
-
Environment:Windows 10/MSVC2017 x64
-
Platform/s:
Description
Shared Memory Example won't work with showing "Unable to attach to shared memory segment. Load an image first".
https://doc.qt.io/qt-5/qtcore-ipc-sharedmemory-example.html
Reproducible steps:
- Open example "Shared Memory Example" on Qt Creator
- Build and run
- Load image from file
- Click "Display Image From Shared Memory"
- Showing "Unable to attach to shared memory segment. Load an image first"
Always failing here.
void Dialog::loadFromMemory() { if (!sharedMemory.attach()) { ui.label->setText(tr("Unable to attach to shared memory segment.\n" \ "Load an image first.")); return;