SQLitePCL.raw
SQLitePCL.raw copied to clipboard
Remove hook_handle.ForDispose ?
@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).
Originally posted by @sharwell in https://github.com/ericsink/SQLitePCL.raw/issues/398#issuecomment-787583885
Adding rationale: A trace shows that some hook_handle instances are not disposed correctly and induce a Finalize() call from the GC.