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
 TwainParams.GetFromScanner locks up
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

FLDelphi

19 Posts

Posted - Aug 03 2020 :  11:54:52  Show Profile  Reply
We have a user who does not have any connected scanners. Every once in a blue moon the program will completely lock up on TImageEnIO.TwainParams.GetFromScanner. The user will need to kill the program from task manager. They'll go right back to the offending code and it will return instantly.

We're using Delphi XE3 and ImageEn 8.6.0. What kind of debugging can we do here?

xequte

38189 Posts

Posted - Aug 03 2020 :  22:56:40  Show Profile  Reply
Hi

You can enable the log file with the following property:

https://www.imageen.com/help/TIETwainParams.LogFile.html

I suspect you will find that ImageEn will be waiting for a response from Windows. Let me know what you find.

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

FLDelphi

19 Posts

Posted - Aug 04 2020 :  10:35:07  Show Profile  Reply
That's great. Will compile a new version and get it installed. Thank you.
Go to Top of Page

FLDelphi

19 Posts

Posted - Sep 09 2020 :  10:21:06  Show Profile  Reply
Sorry for the delay...the lockup happens very rarely (about 4 times since I posted this). Each time there were different troubles getting the log file, but we were finally successful this morning. Here it is:

Twain log. Core version 8.6.0 8-6-2019 * 32 bit
9/9/2020 7:59:06 AM : CreateProxyWindow
9/9/2020 7:59:06 AM : CreateProxyWindow : created
9/9/2020 7:59:06 AM : IETW_LoadSourceManager
9/9/2020 7:59:06 AM : IETW_LoadSourceManager : Load OK
9/9/2020 7:59:06 AM : IETW_OpenSourceManager
9/9/2020 7:59:06 AM : IETW_OpenSourceManager : Ok
9/9/2020 7:59:06 AM : IETW_CloseSourceManager
9/9/2020 7:59:06 AM : IETW_EmptyMessageQueue
9/9/2020 7:59:06 AM : IETW_EmptyMessageQueue : end
9/9/2020 7:59:06 AM : IETW_CloseSourceManager : Ok
9/9/2020 7:59:06 AM : IETW_UnloadSourceManager
9/9/2020 7:59:06 AM : IETW_UnloadSourceManager not Unloaded, for future uses
9/9/2020 7:59:06 AM : DestroyProxyWindow
9/9/2020 7:59:06 AM : DestroyProxyWindow : not destroyed, for future uses
9/9/2020 7:59:06 AM : CreateProxyWindow
9/9/2020 7:59:06 AM : CreateProxyWindow : already created
9/9/2020 7:59:06 AM : IETW_LoadSourceManager
9/9/2020 7:59:06 AM : IETW_LoadSourceManager : already loaded
9/9/2020 7:59:06 AM : IETW_OpenSourceManager
9/9/2020 7:59:06 AM : IETW_OpenSourceManager : Ok
9/9/2020 7:59:06 AM : IETW_OpenSource
9/9/2020 7:59:06 AM : Opening "WIA-Galaxy S8+"

Looks like it's having trouble with his phone/WIA...but like I said, the error doesn't happen very often. Where can we go from here?
Go to Top of Page

FLDelphi

19 Posts

Posted - Sep 09 2020 :  15:38:03  Show Profile  Reply
For comparison, here's a log file where it DOESN'T lock up.

Twain log. Core version 8.6.0 8-6-2019 * 32 bit
8/21/2020 10:04:04 AM : CreateProxyWindow
8/21/2020 10:04:04 AM : CreateProxyWindow : created
8/21/2020 10:04:04 AM : IETW_LoadSourceManager
8/21/2020 10:04:04 AM : IETW_LoadSourceManager : Load OK
8/21/2020 10:04:04 AM : IETW_OpenSourceManager
8/21/2020 10:04:04 AM : IETW_OpenSourceManager : Ok
8/21/2020 10:04:04 AM : IETW_CloseSourceManager
8/21/2020 10:04:04 AM : IETW_EmptyMessageQueue
8/21/2020 10:04:04 AM : IETW_MessageHook
8/21/2020 10:04:04 AM : IETW_MessageHook : state = 3
8/21/2020 10:04:04 AM : IETW_EmptyMessageQueue : end
8/21/2020 10:04:04 AM : IETW_CloseSourceManager : Ok
8/21/2020 10:04:04 AM : IETW_UnloadSourceManager
8/21/2020 10:04:04 AM : IETW_UnloadSourceManager not Unloaded, for future uses
8/21/2020 10:04:04 AM : DestroyProxyWindow
8/21/2020 10:04:04 AM : DestroyProxyWindow : not destroyed, for future uses
8/21/2020 10:04:04 AM : CreateProxyWindow
8/21/2020 10:04:04 AM : CreateProxyWindow : already created
8/21/2020 10:04:04 AM : IETW_LoadSourceManager
8/21/2020 10:04:04 AM : IETW_LoadSourceManager : already loaded
8/21/2020 10:04:04 AM : IETW_OpenSourceManager
8/21/2020 10:04:04 AM : IETW_OpenSourceManager : Ok
8/21/2020 10:04:04 AM : IETW_OpenSource
8/21/2020 10:04:04 AM : Opening "WIA-Galaxy S8+"
8/21/2020 10:04:05 AM : IETW_Mgr : General failure. Unload Source immediately.
8/21/2020 10:04:05 AM : IETW_OpenSource : FAILED!
8/21/2020 10:04:05 AM : IETW_CloseSourceManager
8/21/2020 10:04:05 AM : IETW_EmptyMessageQueue
8/21/2020 10:04:05 AM : IETW_MessageHook
8/21/2020 10:04:05 AM : IETW_MessageHook : state = 3
8/21/2020 10:04:05 AM : IETW_MessageHook : end
8/21/2020 10:04:05 AM : IETW_EmptyMessageQueue : end
8/21/2020 10:04:05 AM : IETW_CloseSourceManager : Ok
8/21/2020 10:04:05 AM : IETW_UnloadSourceManager
8/21/2020 10:04:05 AM : IETW_UnloadSourceManager not Unloaded, for future uses
8/21/2020 10:04:05 AM : DestroyProxyWindow
8/21/2020 10:04:05 AM : DestroyProxyWindow : not destroyed, for future uses
8/21/2020 10:04:05 AM : CreateProxyWindow
8/21/2020 10:04:05 AM : CreateProxyWindow : created
8/21/2020 10:04:05 AM : IETW_LoadSourceManager
8/21/2020 10:04:05 AM : IETW_LoadSourceManager : Load OK
8/21/2020 10:04:05 AM : IETW_OpenSourceManager
8/21/2020 10:04:05 AM : IETW_OpenSourceManager : Ok
8/21/2020 10:04:05 AM : IETW_CloseSourceManager
8/21/2020 10:04:05 AM : IETW_EmptyMessageQueue
8/21/2020 10:04:05 AM : IETW_EmptyMessageQueue : end
8/21/2020 10:04:05 AM : IETW_CloseSourceManager : Ok
8/21/2020 10:04:05 AM : IETW_UnloadSourceManager
8/21/2020 10:04:05 AM : IETW_UnloadSourceManager not Unloaded, for future uses
8/21/2020 10:04:05 AM : DestroyProxyWindow
8/21/2020 10:04:05 AM : DestroyProxyWindow : not destroyed, for future uses
8/21/2020 10:04:05 AM : CreateProxyWindow
8/21/2020 10:04:05 AM : CreateProxyWindow : already created
8/21/2020 10:04:05 AM : IETW_LoadSourceManager
8/21/2020 10:04:05 AM : IETW_LoadSourceManager : already loaded
8/21/2020 10:04:05 AM : IETW_OpenSourceManager
8/21/2020 10:04:05 AM : IETW_OpenSourceManager : Ok
8/21/2020 10:04:05 AM : IETW_OpenSource
8/21/2020 10:04:05 AM : Opening "WIA-Galaxy S8+"
8/21/2020 10:04:05 AM : IETW_Mgr : General failure. Unload Source immediately.
8/21/2020 10:04:05 AM : IETW_OpenSource : FAILED!
8/21/2020 10:04:05 AM : IETW_CloseSourceManager
8/21/2020 10:04:05 AM : IETW_EmptyMessageQueue
8/21/2020 10:04:05 AM : IETW_MessageHook
8/21/2020 10:04:05 AM : IETW_MessageHook : state = 3
8/21/2020 10:04:05 AM : IETW_MessageHook : end
8/21/2020 10:04:05 AM : IETW_EmptyMessageQueue : end
8/21/2020 10:04:05 AM : IETW_CloseSourceManager : Ok
8/21/2020 10:04:05 AM : IETW_UnloadSourceManager
8/21/2020 10:04:05 AM : IETW_UnloadSourceManager not Unloaded, for future uses
8/21/2020 10:04:05 AM : DestroyProxyWindow
8/21/2020 10:04:05 AM : DestroyProxyWindow : not destroyed, for future uses
8/21/2020 10:04:37 AM : DestroyProxyWindow
8/21/2020 10:04:37 AM : DestroyProxyWindow : destroyed
8/21/2020 10:04:37 AM : IETW_UnloadSourceManager
8/21/2020 10:04:37 AM : IETW_UnloadSourceManager : Unload OK
8/21/2020 10:04:37 AM : DestroyProxyWindow
8/21/2020 10:04:37 AM : DestroyProxyWindow : destroyed
8/21/2020 10:04:37 AM : IETW_UnloadSourceManager
8/21/2020 10:04:37 AM : IETW_UnloadSourceManager : Unload OK
Go to Top of Page

xequte

38189 Posts

Posted - Sep 10 2020 :  17:05:59  Show Profile  Reply
Hi

Well the main difference is that it looks to have recognized the failed connection with the Galaxy S8 and terminated appropriately.

Do other applications have problems connecting to the device?

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

FLDelphi

19 Posts

Posted - Sep 14 2020 :  18:03:01  Show Profile  Reply
We haven't been watching other applications until now. I don't think the user connects the phone up for anything more than charging.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: