Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    [SOLVED] Accessing QSharedMmory from another process external to Qt

    General and Desktop
    2
    2
    1015
    Loading More Posts
    • 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
      rizoritis last edited by

      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 Reply Quote 0
      • H
        Himanshu Rohilla last edited by

        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 Reply Quote 0
        • First post
          Last post