mirror of
https://github.com/soukoku/ntwain.git
synced 2025-11-08 02:24:46 +08:00
Fixed message loop thread may not start until too late (#6).
This commit is contained in:
@@ -42,7 +42,6 @@ namespace Tester.Winform
|
||||
{
|
||||
if (enc.MimeType == "image/tiff") { _tiffCodecInfo = enc; break; }
|
||||
}
|
||||
SetupTwain();
|
||||
}
|
||||
|
||||
protected override void OnFormClosing(FormClosingEventArgs e)
|
||||
@@ -231,6 +230,10 @@ namespace Tester.Winform
|
||||
|
||||
private void ReloadSourceList()
|
||||
{
|
||||
if (_twain == null)
|
||||
{
|
||||
SetupTwain();
|
||||
}
|
||||
if (_twain.State < 3)
|
||||
{
|
||||
_twain.OpenManager();
|
||||
|
||||
Reference in New Issue
Block a user