internal static void Dispose(this SqliteConnectionHandle connection)
 {
     try
     {
         SQLiteBase.CloseConnection(connection);
     }
     catch (SqliteException)
     {
     }
 }
Exemple #2
0
 protected override bool ReleaseHandle()
 {
     try
     {
         SQLiteBase.CloseConnection(this);
     }
     catch (SqliteException)
     {
     }
     return(true);
 }
Exemple #3
0
        protected override bool ReleaseHandle()
        {
            try
            {
                IntPtr localHandle = Interlocked.Exchange(ref this.handle, IntPtr.Zero);

                if (localHandle != IntPtr.Zero)
                {
                    SQLiteBase.CloseConnection(this, localHandle);
                }
            }
            catch (SqliteException)
            {
            }
            finally
            {
                this.handle = IntPtr.Zero;
                this.SetHandleAsInvalid();
            }
            return(true);
        }