[SOLVED] Accessing QSharedMmory from another process external to Qt



  • 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



  • 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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.