Esempio n. 1
0
 internal static void Dispose(this SqliteStatementHandle statement)
 {
     try
     {
         SQLiteBase.FinalizeStatement(statement);
     }
     catch (SqliteException)
     {
     }
 }
Esempio n. 2
0
 protected override bool ReleaseHandle()
 {
     try
     {
         SQLiteBase.FinalizeStatement(this);
     }
     catch (SqliteException)
     {
     }
     return(true);
 }
Esempio n. 3
0
 protected override bool ReleaseHandle()
 {
     try
     {
         lock (this._cnn)
         {
             SQLiteBase.FinalizeStatement(this);
             Interlocked.Exchange(ref this.handle, IntPtr.Zero);
         }
     }
     catch (SqliteException)
     {
     }
     finally
     {
         this.SetHandleAsInvalid();
     }
     return(true);
 }