Qt Forum

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

    Call for Presentations - Qt World Summit

    QSharedMemory problem (windows)

    General and Desktop
    3
    3
    1340
    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.
    • V
      V.Sabadazh last edited by

      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 Reply Quote 0
      • G
        giesbert last edited by

        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 Reply Quote 0
        • M
          MuldeR last edited by

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