Re: How to catch error (or exit) when Receive hang (General questions)
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:
- How to catch error (or exit) when Receive hang - novanstar, 2008-11-04, 02:57
- Re: How to catch error (or exit) when Receive hang - wodDamir, 2008-11-04, 09:00
- Re: How to catch error (or exit) when Receive hang - novanstar, 2008-11-04, 20:19
- Re: How to catch error (or exit) when Receive hang - woddrazen, 2008-11-04, 20:25
- Re: How to catch error (or exit) when Receive hang - novanstar, 2008-11-04, 21:07
- Re: How to catch error (or exit) when Receive hang - woddrazen, 2008-11-04, 23:05
- Re: How to catch error (or exit) when Receive hang - novanstar, 2008-11-04, 23:56
- Re: How to catch error (or exit) when Receive hang - woddrazen, 2008-11-05, 00:03
- Re: How to catch error (or exit) when Receive hang - novanstar, 2008-11-05, 00:46
- Re: How to catch error (or exit) when Receive hang - woddrazen, 2008-11-05, 09:24
- Re: How to catch error (or exit) when Receive hang - novanstar, 2008-11-05, 19:05
- Re: How to catch error (or exit) when Receive hang - wodDamir, 2008-11-05, 19:20
- Re: How to catch error (or exit) when Receive hang - novanstar, 2008-11-06, 19:39
- Re: How to catch error (or exit) when Receive hang - wodDamir, 2008-11-05, 19:20
- Re: How to catch error (or exit) when Receive hang - novanstar, 2008-11-05, 19:05
- Re: How to catch error (or exit) when Receive hang - woddrazen, 2008-11-05, 09:24
- Re: How to catch error (or exit) when Receive hang - novanstar, 2008-11-05, 00:46
- Re: How to catch error (or exit) when Receive hang - woddrazen, 2008-11-05, 00:03
- Re: How to catch error (or exit) when Receive hang - novanstar, 2008-11-04, 23:56
- Re: How to catch error (or exit) when Receive hang - woddrazen, 2008-11-04, 23:05
- Re: How to catch error (or exit) when Receive hang - novanstar, 2008-11-04, 21:07
- Re: How to catch error (or exit) when Receive hang - woddrazen, 2008-11-04, 20:25
- Re: How to catch error (or exit) when Receive hang - novanstar, 2008-11-04, 20:19
- Re: How to catch error (or exit) when Receive hang - wodDamir, 2008-11-04, 09:00