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. Windows remote desktop: Black Screen

Windows remote desktop: Black Screen

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 1.7k 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.
  • A Offline
    A Offline
    Ankit.Jain
    wrote on 11 May 2018, 09:19 last edited by
    #1

    Hi,

    I am currently getting a black screen when I try to launch my app after connecting to a remote desktop via Windows Remote Desktop.

    I found that if I launch the same app at the remote desktop itself before connecting via WRD, the app shows a proper output.

    May I be suggested how I can work around this problem??

    Thanks
    Ankit

    P.S The app also uses openGL. Though the same exists inside a Qt widget.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 11 May 2018, 09:22 last edited by mrjj 5 Nov 2018, 09:26
      #2

      Hi
      Unless your RDP server is very, very new, openGL do not work unless app is started BEFORE you remote control the pc.

      Most solutions uses a script to disconnect RDP and start app.
      Like
      https://social.technet.microsoft.com/Forums/windowsserver/en-US/c8295ef8-3711-4576-9293-2c4965280165/opengl-and-remote-desktop?forum=winserverTS

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Ankit.Jain
        wrote on 11 May 2018, 10:53 last edited by Ankit.Jain 5 Nov 2018, 11:15
        #3

        @mrjj
        I tried tscon 1 /dest:console before running the exe, but I started getting the error 7045.
        I tried adding the password parameter and passing the function via runas, but both failed.

        I'm not sure, but will disconnecting RDP before startup actually disconnect the remote connection??

        Edit:
        Reading other comments, it actually will disconnect my remote connection. Isn't there a better way to do this?

        M 1 Reply Last reply 11 May 2018, 10:56
        0
        • A Ankit.Jain
          11 May 2018, 10:53

          @mrjj
          I tried tscon 1 /dest:console before running the exe, but I started getting the error 7045.
          I tried adding the password parameter and passing the function via runas, but both failed.

          I'm not sure, but will disconnecting RDP before startup actually disconnect the remote connection??

          Edit:
          Reading other comments, it actually will disconnect my remote connection. Isn't there a better way to do this?

          M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 11 May 2018, 10:56 last edited by
          #4

          @Ankit.Jain
          Hi
          The RDP id might no be 1 always.
          tscon 1 /dest:console
          i think that is what error is

          • but will disconnecting RDP before startup actually disconnect the remote connection??
            Before startup ? what startup? of the app ?

          I often just use teamviewer to open pc, start app and then connect with
          RDP :)

          1 Reply Last reply
          0

          3/4

          11 May 2018, 10:53

          • Login

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