Peter Cushing wrote:
> Vince Teachout wrote:
>   
>> Is there a high cost in performance, etc, with creating the handle and 
>> leaving it available through the program, or should I call as needed?
>>
>>   
>>     
> One advantage of only opening when you need it is that the second 
> connection could be down and you can still run your app.  Presumably 
> this would not work if you had to get the connection at the start  in 
> order to continue.
>   

In this app, that wouldn't be a consideration.  Worst thing that would 
happen would be the report wouldn't run, and that would be true whether 
I opened it at startup, or at report time.  I DO have another app where 
if both connections aren't up, the program would crash.  However, in 
that case, since they're both required, the first thing the program does 
is check the connections, and if either or both are unavailble, it 
errors out gracefully.


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to