mirror of
https://github.com/soukoku/ntwain.git
synced 2025-10-24 18:29:04 +08:00
More sanity checks.
This commit is contained in:
@@ -18,7 +18,10 @@ namespace Tester
|
||||
static void Main(string[] args)
|
||||
{
|
||||
// just an amusing example to do twain in console without UI
|
||||
DoTwainWork();
|
||||
ThreadPool.QueueUserWorkItem(o =>
|
||||
{
|
||||
DoTwainWork();
|
||||
});
|
||||
Console.WriteLine("Test started, press Enter to exit.");
|
||||
Console.ReadLine();
|
||||
}
|
||||
@@ -66,6 +69,10 @@ namespace Tester
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.WriteLine("Failed to open dsm with rc={0}!", rc);
|
||||
}
|
||||
}
|
||||
|
||||
static void twain_SourceDisabled(object sender, EventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user