twain / twain-cs

A C# interface for TWAIN
168 stars 67 forks source link

Missing IDisposable #29

Closed mattzirkle closed 5 years ago

mattzirkle commented 6 years ago

In my mind, opening a connection to the TWAIN DSM is similar to the concept of opening a connection to a SQL database, meaning it is a resource that should probably implement IDisposable. Neither TWAINWorkingGroup.TWAIN nor TWAINWorkingGroupToolkit.TWAINCSToolkit implement the IDisposable pattern. I would think at least the main TWAIN class would implement it.

mattzirkle commented 5 years ago

Looking back later, it appears that this was resolved on the commit on 4/16/2018 looking at TWAIN.cs