Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-77942

Shared Memory Example won't work

    XMLWordPrintable

    Details

    • Platform/s:
      Windows

      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:

      1. Open example "Shared Memory Example" on Qt Creator
      2. Build and run
      3. Load image from file
      4. Click "Display Image From Shared Memory"
      5. 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;
      

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            thiago Thiago Macieira
            Reporter:
            akizawa Akihito Izawa
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes