You can execute lightweigth dumb query against DB in separate thread for connection checking purposes. FbClient is threadsafe, no worries there. Executing read only query unrelated to user data shold not conflict with your bussiness at all.
2009/3/29 Ivan Arabadzhiev <[email protected]> > I am currently developing an application which is supposed to silently > ignore lack of database connectivity and continue working transparantly to > the end user. There is indication on the GUI about the state of the > connection, but I noticed it doesn`t change until an operation is > attempted, so I do begin a transaction once or twice a second. What I > don`t like about the idea is that certain user operations must be done in > realtime and I get conflicting transactions between the user-initiated > operations and the ones performed by the background process. > Can anyone recommend a better way to monitor the connection state ? > > And by the way - how thread safe is the firebird client? Will it break if > I were to use the services manager while performing a transaction for > example ? > > Thanks in advance for any suggestions ;) > -- > Ние лудите сме на изчезване, трябва да се подкрепяме ! > > > ------------------------------------------------------------------------------ > _______________________________________________ > Firebird-net-provider mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/firebird-net-provider >
------------------------------------------------------------------------------
_______________________________________________ Firebird-net-provider mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/firebird-net-provider
