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. QSharedMemory problem (windows)

QSharedMemory problem (windows)

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 1.5k 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.
  • V Offline
    V Offline
    V.Sabadazh
    wrote on 8 Feb 2013, 14:12 last edited by
    #1

    Hello everyone!

    I've encountered a problem using QSharedMemory mechanism.
    I have two executables (server and client) using shared memory block for exchanging video frames. Client program creates a block with some name (via QSharedMemory::setKey()), and server connects to that block with the same key.
    When I start these two programs from Qt Creator environment, everything works great for both debug and release builds. But, when I make an installer with them (using NSIS), the installed version refuses to work. It's not about missing Qt libraries, because everything except of this part is working.

    Qt version is 4.8.1, under Win7 64-bit.

    Could you please help me to diagnose the problem?
    Thanks in advance!

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on 8 Feb 2013, 14:22 last edited by
      #2

      What refuses to work?
      What probelms do you get?
      Do you get error messages? If yes, which?

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      1 Reply Last reply
      0
      • M Offline
        M Offline
        MuldeR
        wrote on 9 Feb 2013, 00:53 last edited by
        #3

        Could it be that the installer runs with elevated rights (UAC) and then launches the app?

        In that case the app would be running with elevated rights too, because child processes of elevated process are always elevated as well!

        Elevated processes are running in a "protected" environment, which might be the cause...

        My OpenSource software at: http://muldersoft.com/

        Qt v4.8.6 MSVC 2013, static/shared: http://goo.gl/BXqhrS

        Go visit the coop: http://youtu.be/Jay...

        1 Reply Last reply
        0

        1/3

        8 Feb 2013, 14:12

        • Login

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