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
 Infinite Loop getting during scan

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
FLDelphi Posted - Sep 18 2023 : 10:30:31
Our environment is Remote Desktop using TSScan to pass through TWAIN information.

We have a single user who consistently gets locked completely up during TwainParams.GetFromScanner or during scanning itself.

We enabled the TwainParams.LogFile and waited for her to experience a lockup. Here is an excerpt from the log, and it basically repeats itself until we log her off the server:

9/18/2023 10:49:35 AM : IETW_ModalEventLoop : event.msg=$0200
9/18/2023 10:49:35 AM : IETW_MessageHook
9/18/2023 10:49:35 AM : IETW_MessageHook : state>=5
9/18/2023 10:49:35 AM : IETW_MessageHook : event.msg=$0000
9/18/2023 10:49:35 AM : IETW_MessageHook : MSG_NULL
9/18/2023 10:49:35 AM : IETW_MessageHook : end
9/18/2023 10:49:35 AM : IETW_ModalEventLoop : event.msg=$0113
9/18/2023 10:49:35 AM : IETW_MessageHook
9/18/2023 10:49:35 AM : IETW_MessageHook : state>=5
9/18/2023 10:49:35 AM : IETW_MessageHook : event.msg=$0000
9/18/2023 10:49:35 AM : IETW_MessageHook : MSG_NULL
9/18/2023 10:49:35 AM : IETW_MessageHook : end
9/18/2023 10:49:35 AM : IETW_ModalEventLoop : event.msg=$0113
9/18/2023 10:49:35 AM : IETW_MessageHook
9/18/2023 10:49:35 AM : IETW_MessageHook : state>=5
9/18/2023 10:49:35 AM : IETW_MessageHook : event.msg=$0000
9/18/2023 10:49:35 AM : IETW_MessageHook : MSG_NULL
9/18/2023 10:49:35 AM : IETW_MessageHook : end
9/18/2023 10:49:35 AM : IETW_ModalEventLoop : event.msg=$0113
9/18/2023 10:49:35 AM : IETW_MessageHook
9/18/2023 10:49:35 AM : IETW_MessageHook : state>=5
9/18/2023 10:49:35 AM : IETW_MessageHook : event.msg=$0000
9/18/2023 10:49:35 AM : IETW_MessageHook : MSG_NULL
9/18/2023 10:49:35 AM : IETW_MessageHook : end
9/18/2023 10:49:35 AM : IETW_ModalEventLoop : event.msg=$0200
9/18/2023 10:49:35 AM : IETW_MessageHook
9/18/2023 10:49:35 AM : IETW_MessageHook : state>=5
9/18/2023 10:49:35 AM : IETW_MessageHook : event.msg=$0000
9/18/2023 10:49:35 AM : IETW_MessageHook : MSG_NULL
9/18/2023 10:49:35 AM : IETW_MessageHook : end
9/18/2023 10:49:35 AM : IETW_ModalEventLoop : event.msg=$0200
9/18/2023 10:49:35 AM : IETW_MessageHook
9/18/2023 10:49:35 AM : IETW_MessageHook : state>=5
9/18/2023 10:49:35 AM : IETW_MessageHook : event.msg=$0000
9/18/2023 10:49:35 AM : IETW_MessageHook : MSG_NULL
9/18/2023 10:49:35 AM : IETW_MessageHook : end
9/18/2023 10:49:36 AM : IETW_ModalEventLoop : event.msg=$0200
9/18/2023 10:49:36 AM : IETW_MessageHook
9/18/2023 10:49:36 AM : IETW_MessageHook : state>=5
9/18/2023 10:49:36 AM : IETW_MessageHook : event.msg=$0000
9/18/2023 10:49:36 AM : IETW_MessageHook : MSG_NULL
9/18/2023 10:49:36 AM : IETW_MessageHook : end
9/18/2023 10:49:36 AM : IETW_ModalEventLoop : event.msg=$0200
9/18/2023 10:49:36 AM : IETW_MessageHook
9/18/2023 10:49:36 AM : IETW_MessageHook : state>=5
9/18/2023 10:49:36 AM : IETW_MessageHook : event.msg=$0000
9/18/2023 10:49:36 AM : IETW_MessageHook : MSG_NULL
9/18/2023 10:49:36 AM : IETW_MessageHook : end
9/18/2023 10:49:36 AM : IETW_ModalEventLoop : event.msg=$0200
9/18/2023 10:49:36 AM : IETW_MessageHook
9/18/2023 10:49:36 AM : IETW_MessageHook : state>=5
9/18/2023 10:49:36 AM : IETW_MessageHook : event.msg=$0000
9/18/2023 10:49:36 AM : IETW_MessageHook : MSG_NULL
9/18/2023 10:49:36 AM : IETW_MessageHook : end
9/18/2023 10:49:36 AM : IETW_ModalEventLoop : event.msg=$0200
9/18/2023 10:49:36 AM : IETW_MessageHook
9/18/2023 10:49:36 AM : IETW_MessageHook : state>=5
9/18/2023 10:49:36 AM : IETW_MessageHook : event.msg=$0000
9/18/2023 10:49:36 AM : IETW_MessageHook : MSG_NULL
9/18/2023 10:49:36 AM : IETW_MessageHook : end
9/18/2023 10:49:36 AM : IETW_ModalEventLoop : event.msg=$0113
9/18/2023 10:49:36 AM : IETW_MessageHook
9/18/2023 10:49:36 AM : IETW_MessageHook : state>=5
9/18/2023 10:49:36 AM : IETW_MessageHook : event.msg=$0000
9/18/2023 10:49:36 AM : IETW_MessageHook : MSG_NULL
9/18/2023 10:49:36 AM : IETW_MessageHook : end
9/18/2023 10:49:36 AM : IETW_ModalEventLoop : event.msg=$0200
9/18/2023 10:49:36 AM : IETW_MessageHook
9/18/2023 10:49:36 AM : IETW_MessageHook : state>=5
9/18/2023 10:49:36 AM : IETW_MessageHook : event.msg=$0000
9/18/2023 10:49:36 AM : IETW_MessageHook : MSG_NULL
9/18/2023 10:49:36 AM : IETW_MessageHook : end
9/18/2023 10:49:36 AM : IETW_ModalEventLoop : event.msg=$0200
9/18/2023 10:49:36 AM : IETW_MessageHook
9/18/2023 10:49:36 AM : IETW_MessageHook : state>=5
9/18/2023 10:49:36 AM : IETW_MessageHook : event.msg=$0000
9/18/2023 10:49:36 AM : IETW_MessageHook : MSG_NULL
9/18/2023 10:49:36 AM : IETW_MessageHook : end
9/18/2023 10:49:36 AM : IETW_ModalEventLoop : event.msg=$0200
9/18/2023 10:49:36 AM : IETW_MessageHook
9/18/2023 10:49:36 AM : IETW_MessageHook : state>=5
9/18/2023 10:49:36 AM : IETW_MessageHook : event.msg=$0000
9/18/2023 10:49:36 AM : IETW_MessageHook : MSG_NULL
9/18/2023 10:49:36 AM : IETW_MessageHook : end
9/18/2023 10:49:36 AM : IETW_ModalEventLoop : event.msg=$0200
9/18/2023 10:49:36 AM : IETW_MessageHook
9/18/2023 10:49:36 AM : IETW_MessageHook : state>=5
9/18/2023 10:49:36 AM : IETW_MessageHook : event.msg=$0000
9/18/2023 10:49:36 AM : IETW_MessageHook : MSG_NULL
9/18/2023 10:49:36 AM : IETW_MessageHook : end
9/18/2023 10:49:36 AM : IETW_ModalEventLoop : event.msg=$0200
9/18/2023 10:49:36 AM : IETW_MessageHook
9/18/2023 10:49:36 AM : IETW_MessageHook : state>=5
9/18/2023 10:49:36 AM : IETW_MessageHook : event.msg=$0000
9/18/2023 10:49:36 AM : IETW_MessageHook : MSG_NULL
9/18/2023 10:49:36 AM : IETW_MessageHook : end

I understand that there's many layers of technology on top of each here and the hope to find the exact problem is slim.

But is there any chance we can attach a timeout to TwainParams.GetFromScanner or .Acquire. So that if it gets stuck in an infinite loop like this, we can have a chance to fix the problem at the software level instead of completely killing her session. Similar to ConnectTimeout in HTTP.
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Oct 17 2023 : 14:51:12
This has implemented in our latest beta. You can email us to test it.

Nigel
Xequte Software
www.imageen.com
FLDelphi Posted - Sep 20 2023 : 10:49:38
Thanks guys.
xequte Posted - Sep 18 2023 : 17:51:11
Hi

We're looking into this and will come back to you.

Nigel
Xequte Software
www.imageen.com