ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Detection error upon form open
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

hrc

Denmark
6 Posts

Posted - Sep 05 2012 :  03:59:12  Show Profile  Reply
On slower machines I experience an error when my scan-form is opened. In the constructor I do an TWainParams.Update which fails. If I continue through the messages and try to scan, it works fine.

My own machine doesn't have this problem so I assume some form of scan-component initialisation is done, perhaps threadded. If this is true, how can I stall the form until it's ready?

I use the second to newest version of the component package

xequte

38610 Posts

Posted - Sep 06 2012 :  15:02:34  Show Profile  Reply
Have you confirmed this by delaying TwainParams.Update until after the form is ready, e.g. using FormShow or a postmessage?

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: