mirror of
https://github.com/soukoku/ntwain.git
synced 2026-02-25 13:04:07 +08:00
Made it possible to create event args externally for testing.
This commit is contained in:
@@ -113,7 +113,6 @@ namespace NTwain
|
||||
//{
|
||||
System.Windows.Forms.Application.RemoveMessageFilter(this);
|
||||
_filter = null;
|
||||
Handle = IntPtr.Zero;
|
||||
//});
|
||||
}
|
||||
|
||||
@@ -191,9 +190,9 @@ namespace NTwain
|
||||
if (_hooker != null)
|
||||
{
|
||||
_hooker.RemoveHook(FilterMessage);
|
||||
_hooker.Dispose();
|
||||
// cannot really dispose _hook or the window will also dispose
|
||||
//_hooker.Dispose();
|
||||
_hooker = null;
|
||||
Handle = IntPtr.Zero;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user