On 26-11-2013 17:04, Kjell Rilbe wrote:
>
> Den 2013-11-26 15:46 skrev Jiri Cincura såhär:
>> How the connection string looks like?
>
> Please refer to the thread in firebird-support about this issue: "Object
> in use... wtf???"
>
> I got a couple of replies there, from Ann Harrison among others. I
> probably need to make sure somehow that the FbCommand is disposed so
> that it releases/closes the statement in FB.
>
> How...?

using(var command = conn.CreateCommand()) {
    ...
}

The problem seems to be with connection pooling not closing the command 
when the logical connection is closed (and the physical connection 
returned to the pool). I'd argue that when connection pooling is used, a 
close of the logical connection should close any open dependent objects 
and only leave the connection itself open.

Mark
-- 
Mark Rotteveel

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to