SQLitePCL.raw icon indicating copy to clipboard operation
SQLitePCL.raw copied to clipboard

Does the IGetFunctionPointer implementer need to implement also IDisposable functionality with Destructors

Open tinmanjk opened this issue 4 years ago • 0 comments

Since, I couldn't really find any more info in the documentation / web searches:

Following this: https://docs.microsoft.com/en-us/dotnet/standard/data/sqlite/custom-versions?tabs=netcore-cli

Doesn't the implementation of an "NativeLibraryAdapter" necessitate also a fully-fledged Dispose pattern? After all this class is working with unmanaged resources - library handle and function pointers?

From this discussion https://github.com/ericsink/SQLitePCL.raw/issues/166, I was a bit confused to the final stand of SQLitePCL.raw in regards to who is supposed to provide the safety-net in form of destructors.

tinmanjk avatar Dec 18 '20 01:12 tinmanjk