Windows remote desktop: Black Screen
-
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
AnkitP.S The app also uses openGL. Though the same exists inside a Qt widget.
-
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 -
@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? -
@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?@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 :) - but will disconnecting RDP before startup actually disconnect the remote connection??