AlexNek
Posts: 11
Joined: Thu Nov 05, 2009 7:49 pm

How to detect that ServiceStream is opened?

Thu Nov 19, 2009 2:52 pm

Sometimes franson give us exception that ServiceStream is not opened but I want to react early so I looking for the function like IsOpened to test it.

Jonas
Posts: 2319
Joined: Mon Jan 09, 2006 2:20 pm
Location: Sweden

RE: How to detect that ServiceStream is opened?

Fri Nov 20, 2009 11:22 am

You test it by attempting to grab the Stream, and catch the exception if necessary.

Regards,
Jonas

AlexNek
Posts: 11
Joined: Thu Nov 05, 2009 7:49 pm

RE: How to detect that ServiceStream is opened?

Fri Nov 20, 2009 3:04 pm

Thanks, I thought if an exception exist it is possibly to check it without catch and before exception thrown.

Return to “BlueTools”