SelectObject to CompatibleDC failed / Black viewer window
alan "at" eshelmanappraisals.com
Fri Aug 6 19:14:00 2004
I made a posting about this error before I read your message so here is what
My Viewer is a WinME system; my server is a WinXP Pro. The WinME system
connects to the WinXP Pro system via a VPN over the Internet (just so you
know but I don't think it has any bearing on the error). The VNC Viewer on
WinME appears to connect okay and goes to the next screen which requests the
Username and Password. When I enter the password and click OK, I get the
error displayed on the screen in a standard Windows (VB like) error box. I
reported this error in my posting to this list on 7/19.
"I use both Microsoft Terminal >>Services and VNC to log into an XP system
remotely from a WinME system. Sometimes VNC fails to authenticate with an
error which says "VNC Viewer : Error/SelectObject to CompatibleDC failed.
The parameter is incorrect" - (connects okay to computer but error happens
I tried several scenarios and the one which fails is when I try to use VNC
after TS. If I log in locally to XP, it works okay with VNC after TS. If I
log in remotely using Microsoft Terminal Services and then try to log in
with VNC I get the error.
When you log in via MS TS, it takes control of the terminal; when you log
out of TS, it locks the terminal and you have to enter CTRL+ALT+DEL to log
If you have a local session (not via TS) and log out you have to enter
CTRL+ALT+DEL to log in again but you can log in fine via VNC.
My conclusion is that the logout in the TS case and the local log out are
slightly different and that is enough to throw VNC off.
Has anyone got a workaround for this problem?"
It also occurs when I run the VNC Viewer on an XP system (see my other post
"I posted a problem earlier which described a problem I was having with a
VNC error when I tried to use VNC after MS Terminal Services. I just
tested it again with my home system which is XP Pro and I got the same
Hope this answers both your questions
alan "at" eshelmanappraisals.com
From: vnc-list-admin "at" realvnc.com [mailto:vnc-list-admin "at" realvnc.com]On
Behalf Of James Weatherall
Sent: Friday, August 06, 2004 9:38 AM
To: jan "at" rusch.homeip.net
Cc: vnc-list "at" realvnc.com
Subject: RE: SelectObject to CompatibleDC failed / Black viewer window
Where does the error get logged - in the Windows 2003 Server's event log, or
as a message box at the client, or both?
Which platform is the viewer running on?
Wez @ RealVNC Ltd.
> -----Original Message-----
> From: vnc-list-admin "at" realvnc.com
> [mailto:vnc-list-admin "at" realvnc.com] On Behalf Of jan "at" rusch.homeip.net
> Sent: 06 August 2004 11:09
> To: vnc-list "at" realvnc.com
> Subject: SelectObject to CompatibleDC failed / Black viewer window
> I'm getting the following message when I'm trying to connect
> to an Windows
> 2003 Server running VNC Server 4.0 when noone is logged in:
> "SelectObject to CompatibleDC failed: The operation completed
> successfully (0)"
> I'm using VNC Viewer 4.0 Encoding: AutoSelect Color: Low
> Setting the color to Medium or Full results in a VNC Viewer
> window of size 0,0 (Just the title is displayed). When
> resized the screen is black.
> The connection is tunneled via SSH. VNC Server is only
> listening to local connections on port 5900
> Running the viewer with somebody logged in on the server is
> working fine.
> Viewer connects without problems.
> Same result on 3 different systems.
> Any suggestions or ideas ?
VNC-List mailing list
VNC-List "at" realvnc.com
To remove yourself from the list visit: