Error 30008 Cannot sent at this time. not Connecte - WeOnlyDo Discussion board

Error 30008 Cannot sent at this time. not Connecte (General questions)

by vgrapp, Friday, February 25, 2005, 19:59 (7022 days ago)

I am new to use this control and appreciate some help.
I use wodSSH control in Visual Basic application to connect to UNIX server and send some command.
This is example of my code:
wodSSH1.HostName = gsUNIXServer
wodSSH1.Login = gstrFTPUser
wodSSH1.Password = gstrFTPPwd
If Trim(gsProtocol) <> Then
wodSSH1.Protocol = gnProtocol
End If
AddToList Connecting... & vbCrLf
wodSSH1.Timeout = 30
wodSSH1.Connect
sPattern = a
.......
Private Sub wodSSH1_Received(ByVal ByteCount As Integer)

..............
wodSSH1.Send Me.gsShellCommand & vbCrLf ******
DoEvents
wodSSH1.Send Me.gsCleanupCommand & vbCrLf
DoEvents
****** This line sometimes generate 30008 error and even I trap error in error Handler and try to get out from this procedure it will generate GPF and will close application no matter I will do.

Please, help.

Vlad G
[:uhoh:]

Re: Error 30008 Cannot sent at this time. not Conn

by wodSupport, Friday, February 25, 2005, 22:46 (7022 days ago) @ vgrapp

You should try with setting Blocking = True, in which case you should remove code from events. Or, you can get rid of DoEvents inside Connected event. Change your app so it's event driven - make sure your code inside the event executes as fast as it can, so you return control back to wodSSH.

Hope it helps.