[U2] How does one safely validate that a session is connected in UniObjects (VB VB.Net)

2007-10-04 Thread Jef Lee
I believe the IsActive property is not entirely accurate and tends more to reflect the situation when the last command, or whatever, ran. But hours-of-being-dormant later, testing this property does not prove the connection is still viable. What do you do? The reason I ask is that in VB we try

RE: [U2] How does one safely validate that a session is connected in UniObjects (VB VB.Net)

2007-10-04 Thread Kryka, Richard
Jef Lee wrote: I believe the IsActive property is not entirely accurate... From my tests, you are right about IsActive - it is the results of the last connection (I think) and has nothing to do with the current state. I added a timer function to our VB front end that runs every 60 seconds and

Re: [U2] How does one safely validate that a session is connected in UniObjects (VB VB.Net)

2007-10-04 Thread Richard Nuckolls
The same result can be accomplished by calling a subroutine that does nothing other than return. If it does not throw an exception, then the connection is alive. == Richard Nuckolls Lynden Incorporated 18000 International Blvd, #601 Seattle, WA 98188 On Oct 4, 2007,

Re: [U2] How does one safely validate that a session is connected in UniObjects (VB VB.Net)

2007-10-04 Thread Kate Stanton
We regularly call a UV subroutine ASKOK which returns 'OK'. If it doesn't, it is assumed the connection has broken. - Original Message - From: Kryka, Richard [EMAIL PROTECTED] To: u2-users@listserver.u2ug.org Sent: Friday, October 05, 2007 4:42 AM Subject: RE: [U2] How does one