Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED] Accessing QSharedMmory from another process external to Qt

[SOLVED] Accessing QSharedMmory from another process external to Qt

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rizoritis
    wrote on last edited by
    #1

    Hello,

    I am having trouble accessing data from an external C++ process that is written to QSharedMemory by my Qt process. One question I have is if I attach my Qt process to the shared memory do I have to detach it after I write my data so that my external process can read/access it? Or is this only relevant when the shared memory is locked?

    Thanks

    1 Reply Last reply
    0
    • H Offline
      H Offline
      Himanshu Rohilla
      wrote on last edited by
      #2

      Hi Rizoritis,

      If you attach your Qt process with shared memory and write some data there and detach it then your memory segment will destroy.

      If you want that your one Qt program or process sends data to another C++ process then you can use Pipe to transfer data between different-2 processes.

      HImanshu Rohilla

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved