Issue with 4.1.1 vs. 4.0

B. Scott Smith scott "at" smithdomain.com
Sat Jan 14 21:25:01 2006


As a follow-up to my last post, I have isolated the issue down to the 
following code in rfb_win32/SDisplay.cxx that was added since 4.0:

      // Try to make session zero the console session
      if (!inConsoleSession())
        setConsoleSession();

This code prevents the VNC Server that is running in "User mode" from 
accepting a connection if it is running within an RDP Session, and not 
at the console. Assuming that this logic is not desired when running in 
User mode, I modified all 3 instances of "if (!inConsoleSession())", and 
replaced them with "if (isServiceProcess() && !inConsoleSession())".
This seems to have addressed my issue, and it is working again. I'm 
hoping this won't break something else, so please let me know if this 
change is not appropriate.

Thanks.

B. Scott Smith wrote:

> Hi Wez,
>
> I was trying to help somebody out, but was unable to connect using VNC 
> (I received "The connection closed unexpectedly" errors in my viewer 
> after providing the password). No errors were being logged to the 
> Event viewer on the server side. In attempting to troubleshoot the 
> situation, I discovered he was accessing the box via RDP, and was 
> launching the VNC server in User mode from within the active RDP 
> session. Although I am well aware of the issues of incompatibility 
> between RDP and VNC ( I hit them all the time), I was positive that 
> User mode had worked for me in the past. I tried it on one of my LAN 
> servers (win2k server) and it worked (it was running VNC 4.0). So, I 
> had him downgrade to 4.0, and it worked! Likewise, I upgraded my LAN 
> server to 4.1.1 and now it fails. I also tried this on Win2003 server 
> and Win XP Pro and they all work with 4.0 and fail with 4.1.1. Any ideas?
>
> If there is any more information I can provide, please let me know.
> Thanks.
> _______________________________________________
> VNC-List mailing list
> VNC-List "at" realvnc.com
> To remove yourself from the list visit:
> http://www.realvnc.com/mailman/listinfo/vnc-list