Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4573378
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T19:46:37+00:00 2026-05-21T19:46:37+00:00

I’m a bit new to Qt and I’m trying to understand Shared Memory applications

  • 0

I’m a bit new to Qt and I’m trying to understand Shared Memory applications and what happens when you have multiple pieces of software that use Shared Memory but are not supposed to interact.

I’m looking at this basic demo/example: http://doc.qt.io/qt-5/qtcore-ipc-sharedmemory-example.html

Lets say I develop software app A and software app B. Both of these apps use Qt’s Shared Memory and are made to communicate to eachother using Shared Memory.

Then lets say the user also is running software app X that also happens to use Qt’s Shared Memory for some other purpose. Software app X is completely UNRELATED to app A and app B.

Looking at the documentation for Qt’s Shared Memory, I don’t understand how your application use’s Shared Memory in a way that differentiates itself from other applications attempting to use Shared Memory. What is keeping App X from sending garbage data to App A and App B via Shared Memory?

Also, one big question about the above example is that for Qt’s Shared Memory demo, they use a single application that you run more than once and the Shared Memory stuff happens between them. Are you able to develop two completely different pieces of software that work together via Shared Memory or is it limited to a single application that is has multiple instances open?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T19:46:38+00:00Added an answer on May 21, 2026 at 7:46 pm

    Looking at the documentation for Qt’s
    Shared Memory, I don’t understand how
    your application use’s Shared Memory
    in a way that differentiates itself
    from other applications attempting to
    use Shared Memory.

    You make use of a key that your applications share. Thus can be set via the constructor:

    QSharedMemory::QSharedMemory ( const QString & key, QObject * parent = 0 )

    Or the function setKey():

    void QSharedMemory::setKey ( const QString & key )

    But, if another application used the same key, or guess your key you can have trouble. Thus, one way to protect against this is some form of obfuscation to generate your key.

    Also, one big question about the above
    example is that for Qt’s Shared Memory
    demo, they use a single application
    that you run more than once and the
    Shared Memory stuff happens between
    them. Are you able to develop two
    completely different pieces of
    software that work together via Shared
    Memory or is it limited to a single
    application that is has multiple
    instances open?

    The use of shared memory is to share data between separate processes on the same host. Thus, it might be multiple instances of the same application or other applications that know or share the key.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I am trying to loop through a bunch of documents I have to put
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
I've got a string that has curly quotes in it. I'd like to replace
link Im having trouble converting the html entites into html characters, (&# 8217;) i
this is what i have right now Drawing an RSS feed into the php,
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I have a bunch of posts stored in text files formatted in yaml/textile (from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.