George James · Feb 10, 2017

Cannot establish a telnet connection using Cache Terminal on Wine

For reasons that I won't go into here, I need to run Cache Terminal in Linux using Wine.

It starts up ok, but when I try to establish a connection to a remote server I get the following error:

Ctermsecure Read Error
Could not obtain terminal server client name.
Reason: (10035, 0x2733) unknown error

If I launch CTerm.exe from a command line then I get the following:

~/.wine/drive_c/InterSystems/Cache/bin $ wine CTerm.exe
fixme:imm:ImmReleaseContext (0x4c0354, 0x1bbdb0): stub
fixme:ver:GetCurrentPackageId (0x32f430 (nil)): stub
fixme:wtsapi:WTSQuerySessionInformationA Stub (nil) 0xffffffff 10 0x32d314 0x32d30c

The last line is repeated on each attempt to connect.

Has anyone had any success in getting CTerm.exe to work when running under Wine?  I'm using Cache 2016.2.1.803.0 and Wine version 2.0.


0 712
Discussion (3)0
Log in or sign up to continue

fixme: - messages are for wine-devs. They mean that there are unimplemented or at least not 100% implemented functions. Most of them are harmless but in your case i assume that "wtsapi:WTSQuerySessionInformationA " is not implemented yet. 


Some new information.  In about 1 in 5 attempts the connection is successful.  I get the fixme message whether the connection is successful or not.  So I don't think it is relevant and could well be a red herring.


Are you able to try CTerm.exe from an older Caché? Maybe the newer ones are coded to do fancier things such as work over a SSL/TLS connection. In which case, an older one might not have such demanding requirements of its host platform's APIs.