mirror of
https://github.com/soukoku/ntwain.git
synced 2025-09-19 01:57:56 +08:00
Some comments.
This commit is contained in:
@@ -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
|
||||||
|
@@ -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);
|
||||||
|
Reference in New Issue
Block a user