Testing a fix for hp scanjet.

This commit is contained in:
Eugene 2017-08-30 16:05:29 -04:00
parent 717d5e2418
commit 710770f4cb

View File

@ -276,7 +276,9 @@ namespace NTwain
// In any event the trick to get this thing working is to return from the callback first // In any event the trick to get this thing working is to return from the callback first
// before trying to process the msg or there will be unpredictable errors. // before trying to process the msg or there will be unpredictable errors.
_msgLoopHook?.BeginInvoke(() =>
// changed to sync invoke instead of begininvoke for hp scanjet, not sure if will break other scanners :(
_msgLoopHook?.Invoke(() =>
{ {
HandleSourceMsg(msg); HandleSourceMsg(msg);
}); });