Some comments.

This commit is contained in:
soukoku
2015-01-03 11:29:38 -05:00
parent 7f39c45bd4
commit 844f84e259
2 changed files with 5 additions and 3 deletions

View File

@@ -20,8 +20,8 @@ namespace NTwain.Internals
public static void DoTransferRoutine(ITwainSessionInternal session) public static void DoTransferRoutine(ITwainSessionInternal session)
{ {
var pending = new TWPendingXfers(); var pending = new TWPendingXfers();
var rc = ReturnCode.Success; //var rc = ReturnCode.Success;
var rc = session.DGControl.PendingXfers.Get(pending);
do do
{ {
#region build and raise xfer ready #region build and raise xfer ready

View File

@@ -210,7 +210,7 @@ namespace NTwain
#region IWinMessageFilter Members #region IWinMessageFilter Members
/// <summary> /// <summary>
/// Checks and handle the message if it's a TWAIN message. /// Checks and handles the message if it's a TWAIN message.
/// </summary> /// </summary>
/// <param name="hwnd">The window handle.</param> /// <param name="hwnd">The window handle.</param>
/// <param name="msg">The message.</param> /// <param name="msg">The message.</param>
@@ -265,6 +265,8 @@ namespace NTwain
// spec says we must handle this on the thread that enabled the DS. // spec says we must handle this on the thread that enabled the DS.
// by using the internal dispatcher this will be the case. // by using the internal dispatcher this will be the case.
// 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.
_msgLoopHook.BeginInvoke(() => _msgLoopHook.BeginInvoke(() =>
{ {
HandleSourceMsg(msg); HandleSourceMsg(msg);