Re: When you get an error on connect - WeOnlyDo Discussion board

Re: When you get an error on connect (General questions)

by Scots, Thursday, November 17, 2011, 19:12 (4753 days ago) @ Scots

Scot,

You say you're using events, but I see that there is a Blocking property set to True in your code.

When you're using Blocking, no component methods should be called from events at all. Instead, if error occurs, it will throw an exception on the method that caused it.

You need to use some error handling technique available in PB, such as try...catch blocks.

Can you please try doing so?

I guess I'm confused
I'm not sure what you mean by Catch blocks
The way I did this, works ok... if we get connected properly
but... if it fails to connect, that's when I have problems


I think I worked it out, thanks


Complete thread: