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
 Infinite Loop getting during scan
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

FLDelphi

19 Posts

Posted - Sep 18 2023 :  10:30:31  Show Profile  Reply
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.

xequte

38610 Posts

Posted - Sep 18 2023 :  17:51:11  Show Profile  Reply
Hi

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

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

FLDelphi

19 Posts

Posted - Sep 20 2023 :  10:49:38  Show Profile  Reply
Thanks guys.
Go to Top of Page

xequte

38610 Posts

Posted - Oct 17 2023 :  14:51:12  Show Profile  Reply
This has implemented in our latest beta. You can email us to test it.

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