Re: Buffer Size Command Hanging - WeOnlyDo Discussion board

Re: Buffer Size Command Hanging (General questions)

by mmorton, Tuesday, July 07, 2009, 17:30 (5379 days ago) @ wodDamir

Hi,

I have looked at the example and I dont think that really helps me in what I am trying to do.

I have tried setting blocking to false for the command and it retrieves about 88 lines and then stops with 'Object not set to an Instance of an Object'.

I am not sure why it would raise this event as there is still plenty of data to go.

Here is the code I used.


[code]
sshConnection.Execute( show * /identifier & vbCrLf, vbCrLf, 30)
sshConnection.Blocking = False
While sshConnection.DataReady
Dim data_recieve As String = sshConnection.ReceiveLine.ToString
If data_recieve.Contains( [ ) And data_recieve.Contains( ] ) Then passwd.Add(data_recieve)
End While
sshConnection.Blocking = True
[/code]

The error occurs when I try to access the data_recieve string. ANy ideas?

Regards
Mike


Complete thread: