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
 MIO.Acquire() in separate thread
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

michaljasinski

Poland
1 Posts

Posted - Jan 02 2023 :  03:03:03  Show Profile  Reply
I'm trying to acquire an image from scanner with this code:

 TThread.CreateAnonymousThread(
   PROCEDURE()
   BEGIN
    try
      ImageEnMView1.MIO.Acquire();
      //
    finally
    end;
   END
 ).Start;


When I choose the TWAIN scanner source -> everything works fine. The TWAIN scanner dialog shows and there is a scanned image.
When I choose other source (WIA) -> the Acquire() method quits instantly without any exception. There is neither WIA scanner dialog nor any scanner reaction.
I tried this code in AllAcquire DEMO and the result is exactly the same.

Is there any possibility to acquire an image without blocking main thread of an application ?

xequte

38448 Posts

Posted - Jan 03 2023 :  19:58:02  Show Profile  Reply
Hi

Theoretically WIA should be thread-safe, so we'll need to investigate this and come back to you.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

xequte

38448 Posts

Posted - Dec 20 2023 :  14:58:10  Show Profile  Reply
Hi

We're unable to reproduce this issue. In our testing WIA scanners work fine in a thread. Can you give us more information?

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