Re: How to catch error (or exit) when Receive hang - WeOnlyDo Discussion board

Re: How to catch error (or exit) when Receive hang (General questions)

by wodDamir, Tuesday, November 04, 2008, 09:00 (5864 days ago) @ novanstar

Hi,

You need to ignore the error in order to continue executing the code regardless of the error. You can do that using try...Catch block, like this:

[code]Try
{
ssh1.Receive();
}
Catch(Exception ex)
{
//do what you need in case of timeout
}[/code]

Hope this helps.

Regards,
Damba


Complete thread: