...
for(;;)
{
try
{
using(FbConnection tFbConn = new FbConnection(...))
{
try
{
tFbConn.Open();
if(ConnectionState.Open == tFbConn.State)
{
bConnOpen = true;
}
} // try
catch(ArgumentException tArgExcept)
{
...
bConnOpen = false;
} // catch(ArgumentException tArgExcept)
catch(FbException tFbExcept)
{
...
bConnOpen = false;
} // catch(FbException tFbExcept)
finally
{
tFbConn.Close();
} // finally
} // using(FbConnection tFbConn = new
FbConnection(Program.strFirebirdConnStr))
} // try
catch(Exception tExcept)
{
...
bConnOpen = false;
} // catch(Exception tExcept)
finally
{
...
} // finally
Thread.Sleep(1000);
} // for(;;)
...
But, does this code right?
-----Messaggio originale-----
Da: Jiri Cincura [mailto:disk...@cincura.net]
Inviato: venerdì 24 aprile 2009 14.05
A: For users and developers of the Firebird .NET providers
Oggetto: Re: [Firebird-net-provider] R: R: Reliable connection
On Fri, Apr 24, 2009 at 13:44, Sporti Giulio <giulio.spo...@bottero.com> wrote:
> But have you tried a sequence like I described before?
Yes.
--
Jiri {x2} Cincura (CTO x2develop.com)
http://blog.vyvojar.cz/jirka/ | http://www.ID3renamer.com
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider