System.Data.SQLite
Check-in [7f1111a6fd]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Also prevent the sqlite3_interrupt() call from being interrupted.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | stepNoThreadAbort
Files: files | file ages | folders
SHA1: 7f1111a6fdc8294c28d1a2197f0f3c696bef4b7c
User & Date: mistachkin 2015-05-13 03:47:41
Context
2015-05-15
17:45
Prevent calls to the native sqlite3_step() and sqlite3_interrupt() methods from being interrupted via a ThreadAbortException. Also, remove a superfluous native function declaration. check-in: 70655cda1a user: mistachkin tags: trunk
2015-05-13
03:47
Also prevent the sqlite3_interrupt() call from being interrupted. Closed-Leaf check-in: 7f1111a6fd user: mistachkin tags: stepNoThreadAbort
03:23
Prevent the call into the native sqlite3_step() call from being interrupted via a ThreadAbortException. Also, remove a superfluous native function declaration. check-in: c822cde494 user: mistachkin tags: stepNoThreadAbort
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to System.Data.SQLite/SQLite3.cs.

   265    265   
   266    266       /// <summary>
   267    267       /// Attempts to interrupt the query currently executing on the associated
   268    268       /// native database connection.
   269    269       /// </summary>
   270    270       internal override void Cancel()
   271    271       {
   272         -      UnsafeNativeMethods.sqlite3_interrupt(_sql);
          272  +      try
          273  +      {
          274  +        // do nothing.
          275  +      }
          276  +      finally /* NOTE: Thread.Abort() protection. */
          277  +      {
          278  +        UnsafeNativeMethods.sqlite3_interrupt(_sql);
          279  +      }
   273    280       }
   274    281   
   275    282       /// <summary>
   276    283       /// This function binds a user-defined function to the connection.
   277    284       /// </summary>
   278    285       /// <param name="functionAttribute">
   279    286       /// The <see cref="SQLiteFunctionAttribute"/> object instance containing