Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Wrap calls to the SessionTableFilterCallback delegate in a try/catch. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | sessions |
Files: | files | file ages | folders |
SHA1: |
9c4784ee2fcb1fc72f0060affaf53335 |
User & Date: | mistachkin 2017-10-11 05:18:26.768 |
Context
2017-10-11
| ||
21:21 | Create the metadata item for the xConflict callback. check-in: e3f2fe8d85 user: mistachkin tags: sessions | |
05:18 | Wrap calls to the SessionTableFilterCallback delegate in a try/catch. check-in: 9c4784ee2f user: mistachkin tags: sessions | |
04:53 | Update version history docs. check-in: 9706984ee1 user: mistachkin tags: sessions | |
Changes
Changes to System.Data.SQLite/SQLiteSession.cs.
︙ | ︙ | |||
1300 1301 1302 1303 1304 1305 1306 | #region Native Callback Methods private int xFilter( IntPtr context, /* NOT USED */ IntPtr pTblName ) { | > > | | > > > > > > > > > > > > > > > > > > > > > > | 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 | #region Native Callback Methods private int xFilter( IntPtr context, /* NOT USED */ IntPtr pTblName ) { try { return tableFilterCallback(tableFilterClientData, SQLiteString.StringFromUtf8IntPtr(pTblName)) ? 1 : 0; } catch (Exception e) { try { if (HelperMethods.LogCallbackExceptions(GetFlags())) { SQLiteLog.LogMessage( /* throw */ SQLiteBase.COR_E_EXCEPTION, HelperMethods.StringFormat( CultureInfo.CurrentCulture, UnsafeNativeMethods.ExceptionMessageFormat, "xFilter", e)); } } catch { // do nothing. } } return 0; } #endregion #endregion /////////////////////////////////////////////////////////////////////// #region ISQLiteSession Members |
︙ | ︙ |