When I hit this line:
conn.Open();
it breaks out of that block without throwing an exception.  Actually it breaks out of that class completely, but it doesn't return a datatable so my calling class experiences a datatable == null exception, which I handle.  

here is the code sample where I open the connection

            try
            {
                if (conn == null)
                {
                    conn = new FbConnection(_connstr);  -- it breaks out here
                }
                switch (conn.State)
                {
                    case ConnectionState.Closed:
                        conn.Open();
                        break;
                    case ConnectionState.Broken:
                    case ConnectionState.Connecting:
                    case ConnectionState.Executing:
                    case ConnectionState.Fetching:
                        conn.Close();
                        conn.Open();
                        break;
                }
                return conn.State == ConnectionState.Open;
            }
... then I handle any exception thrown here, except it never throws the exception.  I guess it just isn't opening the connection

Dixon


On Wed, Mar 19, 2014 at 3:36 PM, Jiri Cincura <diskuze@cincura.net> wrote:
On Wed, Mar 19, 2014 at 8:00 PM, E. D. Epperson Jr
<dixonepperson@gmail.com> wrote:
> At some point during every day, after creating the FbConnection, I then
> Open.  It apparently throws an error, but my try/catch doesn't catch it.

How do you know it throw an exception? Did you tried attaching
debugger to VS (from other VS)?

--
Jiri {x2} Cincura (x2develop.com founder)
http://blog.cincura.net/ | http://www.ID3renamer.com

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider



--
Dixon Epperson