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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 MIO.Acquire() in separate thread

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
michaljasinski Posted - Jan 02 2023 : 03:03:03
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 ?
2   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Dec 20 2023 : 14:58:10
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
xequte Posted - Jan 03 2023 : 19:58:02
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