mirror of
https://github.com/soukoku/ntwain.git
synced 2025-09-19 10:08:00 +08:00
msg loop tweaks & intptr cleanup.
This commit is contained in:
@@ -113,6 +113,7 @@ namespace NTwain
|
||||
//{
|
||||
System.Windows.Forms.Application.RemoveMessageFilter(this);
|
||||
_filter = null;
|
||||
Handle = IntPtr.Zero;
|
||||
//});
|
||||
}
|
||||
|
||||
@@ -192,6 +193,7 @@ namespace NTwain
|
||||
_hooker.RemoveHook(FilterMessage);
|
||||
_hooker.Dispose();
|
||||
_hooker = null;
|
||||
Handle = IntPtr.Zero;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user