Login  
Search All Forums
Dart Home | C++ Professional Toolkit | Custom Development Reply | C++ Professional Toolkit Topics | Forums   
AuthorForum: C++ Professional Toolkit
Topic: Telnet CmdEvent
busybill

From: Salt Lake City, UT USA
Posts: 6
Member Since: 09/06/01
posted November 6, 2001 2:50 PM

I find that occasionally when CmdEvent that the Connection State is PT_CONNECTING instead of PT_CONNECTED. When it is PT_CONNECTING and I reply to the CmdEvent with SendCmd I get an exception PT_NOTCONNECTED. This also causes the connection to hang for a long period of time if not forever. Although I have found that if I put up a Message Box (AfxMessageBox) in ExceptionEvent that after the OK button is clicked everything continues on as it should. I don't believe I should have to do this. Any ideas.
-Bill
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted November 6, 2001 4:08 PM


Hi Bill,
What if you wait until the state is connected before doing your SendCmd? Does it hang then?
Thanks,
-ken

K M Drake
Dart Tech Support
busybill

From: Salt Lake City, UT USA
Posts: 6
Member Since: 09/06/01
posted November 6, 2001 5:02 PM

The problem is that while I'm in the CmdEvent procedure it won't transition out of the PT_CONNECTING state (I tried it and it just hung the whole program). So I can't wait while in the procedure. Thus to wait I'd have to que up the Event, return, and wait for some other event (I don't know which one since ConnectEvent has already fired).
-Bill 
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted November 6, 2001 7:08 PM


We are unable to duplicate this problem with our sample app. Please state exactly how to dupicate this error with the sample app that is provided.

Thanks,

Tony Priest
Dart Tech Support
Reply | C++ Professional Toolkit Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX