| Dart Home | PowerTCP Emulation for .NET | Custom Development | Reply | PowerTCP Emulation for .NET Topics | Forums |
| Author | Forum: PowerTCP Emulation for .NET Topic: Closing a session. |
| rcashon rcashon@shawinc.com From: Dalton, GA USA Posts: 5 Member Since: 02/09/06 |
posted August 4, 2006 2:20 PM I am screen scraping a telnet session. When I close the session using telnet1.close() it responds with this... "A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagra, socket using sendto call) no address was supplied" Is this due to the event still being active? ie... Private Sub telnet1_EndReceive(ByVal sender As Object, ByVal e As Dart.PowerTCP.Telnet.SegmentEventArgs) Handles telnet1.EndReceive Thanks |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted August 4, 2006 2:27 PM Please clarify what you mean by "it responds" Are you saying that you call telnet1.close and an exception is thrown? If so, are you sure that the exception is thrown from that method? Maybe send is being called elsewhere in the program? |
| rcashon rcashon@shawinc.com From: Dalton, GA USA Posts: 5 Member Since: 02/09/06 |
posted August 4, 2006 2:52 PM It appeared as a message box that I did not generate. It really did not look like an exception box from MS Visual studio.net and I did not catch an exception from the End_Receive event. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted August 4, 2006 3:02 PM Have you tried running it in debug mode, then breaking on the line that caused the exception? That's really the only way I could tell you what's going on. |
| Reply | PowerTCP Emulation for .NET Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|