ClearAllPools should not close/dispose open connections.
A function to close all pooled connections might be useful however for when
you need to close all connections maybe with different name like
CloseAllPooledConnections


On Wed, Apr 17, 2013 at 10:29 AM, Jiri Cincura <disk...@cincura.net> wrote:

> Hi *,
>
> I just found behavior that surprised me. Suppose pooling is on and
> (all connections to same database):
> Open connection1.
> Open connection2.
> Close connection2.
> FbConnection.ClearAllPools();
> Try to use connection1.
>
> On this ^ line you'll get exception as the connection1 was also
> cleared aka closed/disposed. I always used ClearAllPools with all
> connections closed so I had no idea it behaves like that.
>
> But do you think is correct? Should the ClearAllPools clear even the
> opened connections?
>
> --
> Jiri {x2} Cincura (x2develop.com founder)
> http://blog.cincura.net/ | http://www.ID3renamer.com
>
>
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> Firebird-net-provider mailing list
> Firebird-net-provider@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/firebird-net-provider
>



-- 
Gerdus van Zyl
http://about.me/gerdus
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to