@sebastienros That's a separate issue. hook_handle.ForDispose() prevents instances created to represent null from getting disposed. The solution is to delete hook_handle.ForDispose() since it's unnecessary (disposing of a null/invalid SafeHandle is not only fine; it's expected).
@sebastienros That's a separate issue.
hook_handle.ForDispose()
prevents instances created to represent null from getting disposed. The solution is to deletehook_handle.ForDispose()
since it's unnecessary (disposing of a null/invalidSafeHandle
is not only fine; it's expected).Originally posted by @sharwell in https://github.com/ericsink/SQLitePCL.raw/issues/398#issuecomment-787583885