Fixed message loop thread may not start until too late (#6).

This commit is contained in:
soukoku
2014-04-15 18:57:03 -04:00
parent af40d11103
commit fcd4961d28
3 changed files with 13 additions and 2 deletions

View File

@@ -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();