mirror of
https://github.com/soukoku/ntwain.git
synced 2025-04-05 20:59:23 +08:00
Some comments.
This commit is contained in:
parent
7f39c45bd4
commit
844f84e259
@ -20,8 +20,8 @@ namespace NTwain.Internals
|
||||
public static void DoTransferRoutine(ITwainSessionInternal session)
|
||||
{
|
||||
var pending = new TWPendingXfers();
|
||||
var rc = ReturnCode.Success;
|
||||
|
||||
//var rc = ReturnCode.Success;
|
||||
var rc = session.DGControl.PendingXfers.Get(pending);
|
||||
do
|
||||
{
|
||||
#region build and raise xfer ready
|
||||
|
@ -210,7 +210,7 @@ namespace NTwain
|
||||
#region IWinMessageFilter Members
|
||||
|
||||
/// <summary>
|
||||
/// Checks and handle the message if it's a TWAIN message.
|
||||
/// Checks and handles the message if it's a TWAIN message.
|
||||
/// </summary>
|
||||
/// <param name="hwnd">The window handle.</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.
|
||||
// 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(() =>
|
||||
{
|
||||
HandleSourceMsg(msg);
|
||||
|
Loading…
Reference in New Issue
Block a user