| Dart Home | PowerTCP Emulation for ActiveX | Custom Development | Reply | PowerTCP Emulation / Telnet for ActiveX Topics | Forums |
| Author | Forum: PowerTCP Emulation / Telnet for ActiveX Topic: Emulator characters being replaced |
| roger From: lon, United Kingdom Posts: 4 Member Since: 12/11/02 |
posted December 11, 2002 5:32 AM Hi I am attempting to produce a telnet emulator. I have installed the latest versions of PowerTCP tools as advised by the site. The VB6 routine works perfectly unless being run on a busy machine (server). When a pause occurs, and characters are still being typed, you would expect the characters to be stored up and sent after the pause. What appears to happen though, is that all the charcters typed after the pause are replaced by either the first or the last character entered (e.g. 454545 entered after the pause, will send either 444444 or 555555). I would be grateful for any assistance with this problem. Many Thanks. |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted December 12, 2002 1:46 PM Hi, Please give us the steps for reproducing this behavior, and we can take a look. Thanks, -ken |
| roger From: lon, United Kingdom Posts: 4 Member Since: 12/11/02 |
posted December 13, 2002 4:56 AM Hi I am able to duplicate the problem with the emulator sample supplied with the component. When the complied program is run under terminal services (windows 2000), and a pause occurs, the problem happens. Looking at the trace file generated, it appears to be sending the bad characters (e.g. log shows ---> 8 ---> 8 ---> 8 ---> 8 ---> 8 ---> 8 ---> 7 ---> 7 ---> 7 ---> 7 ---> 7 ---> 7 when I actually typed 878787878787. The keyascii being used in the .send instruction is correct but the data being echoed back is not. Hope that this info helps. Many thanks. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted December 13, 2002 8:57 AM Please be more specific about what you mean "a pause occurs". How exactly do I make a pause occur in Windows Terminal Server? |
| roger From: lon, United Kingdom Posts: 4 Member Since: 12/11/02 |
posted December 16, 2002 7:40 AM The terminal server has many clients running various processor intensive tasks. It may be that they are taking a great deal of processor time or the machine is swapping out memory to disk. When these events occur, the emulator will wait until it gets processor time back. This is normal on the server and other terminal emulators we have used will catch up correctly with the characters entered. Many Thanks for your help. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted December 16, 2002 8:58 AM Please determine a way that I can "fake" this busy state so that I can see this happen. Unfortunately, if I can't see it happen, I can't fix it. |
| roger From: lon, United Kingdom Posts: 4 Member Since: 12/11/02 |
posted December 17, 2002 4:44 AM The only way I can reproduce the problem is to heavily load a terminal server system until you start to get pauses. Use low power hardware and get several clients logged in running CPU and memeory intensive programs like Autoroute, large Excel spreadsheets etc. Run the terminal emulator in one of these client sessions, log into a telnet host and hit two different keys in rapid succession. The echoing will pause at some point and after the pause the delayed echo will show as all one character instead of the alternating characters keyed. We get the problem on both of our terminal services hosts. One is a W2k server with terminal services enabled and the other a WinNT4 with Terminal Server extensions and Citrix Metaframe layered on top. Terminal services is a standard part of Microsoft's OS and important in large companies who find it easier to support a large number of PC users using this client/server technology. Such companies are more likely to be using a terminal emulator than the average PC user. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted December 17, 2002 10:24 AM OK, here's what I just did and I was not able to duplicate: 1) Installed the shipping Emulation Tool on a Win2k terminal server 2) Ran the VB6 emulator sample 3) Started a Help Update in Visual STudio.NET (real CPU hog!) 4) Logged into a server with the sample and started typing 45454545.... There was a point during my typing where the VT stopped displaying for about 10-15 characters, after which 45454545 appeared. Any other advice to offer on how to duplicate? |
| maapro From: Gravellona Toce, USA Posts: 5 Member Since: 09/23/04 |
posted September 23, 2004 6:02 AM hi, i have the same problem, mi telnet object send a different character to telnet.send CHR. i sniff my network and i see that in same case (cpu high load, vnc server run) when i type 2 button simultaneous telnet send two same character. fabio ps. sorry for my bad english |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted September 23, 2004 10:01 AM Unfortunately we were never able to duplicate the problem and therefore were not able to fix it. If you have any further info that could help duplicate it, please let us know. |
| maapro From: Gravellona Toce, USA Posts: 5 Member Since: 09/23/04 |
posted September 27, 2004 12:03 PM you can duplicate the problem using this code in your vb6 emulator sample: Private Sub Vt1_KeyDown(KeyCode As Integer, Shift As DartVtCtl.ShiftConstants, ByVal Extended As Boolean) Dim St As String St = Chr(KeyCode) If Telnet1.State = tcpConnected Then Telnet1.Send St Debug.Print Timer & " - " & St End If End Sub Private Sub VT1_KeyPress(KeyAscii As String) ' Make sure the user is connected, or else don't ' display the character ' If Telnet1.State = tcpConnected Then ' Telnet1.Send KeyAscii ' Debug.Print Timer & " - " & KeyAscii ' End If End Sub if you load your network traffic and your cpu when you press 3 button key simultaneous sometime the vb6 debug windows and the vt1 don't show the same characters. fabio |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted September 27, 2004 12:11 PM Please describe exactly what you mean by "load your network traffic and your cpu " We need a way to simulate this that will cause the problem exactly as you see it. |
| maapro From: Gravellona Toce, USA Posts: 5 Member Since: 09/23/04 |
posted September 27, 2004 12:24 PM i use ultravnc client and i connect my pc to a remote vnc server and i move some big file over the network. i also engage my ram opening a lot of program. thanks |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted September 27, 2004 12:55 PM I'm sorry but I don't have the ability to setup this scenario. Please see if you can figure out a way to duplicate this without using a VNC. |
| maapro From: Gravellona Toce, USA Posts: 5 Member Since: 09/23/04 |
posted September 28, 2004 2:51 AM you can try to simulate the problem moving some big files over the network and engaging your ram opening many programs, without running vnc the problem is less frequently but it is however visible |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted September 28, 2004 7:15 AM We will need a way that will definitely recreate the problem. We can't spend hours trying something that may or may not cause the problem to occur. Please contact us at support@dart.com once you determine a way to reproduce the problem at will. |
| Reply | PowerTCP Emulation / Telnet for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|