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
 ienvImageEnView.io.SelectAcquireSource WIA option results in a error
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Pieter192837465

Netherlands
2 Posts

Posted - Aug 09 2023 :  09:38:32  Show Profile  Reply
After we installed the version 11.4.5 of imageEn we get an error when we call te routine SelectAcquireSource.

if ienvImageEnView.io.SelectAcquireSource then
...
..


This is the error that occures : "Resource IEACQ_4000 not found"

This seems to happen if option ieaWIA is present in parameter Apis.

function SelectAcquireSource(Apis : TIEAcquireApis = [ieaTwain, ieaWIA]; DeviceGlyphHue : Integer = -999): boolean;

What does this error mean and how can this be solved.




Me_and_my

xequte

38615 Posts

Posted - Aug 09 2023 :  22:56:26  Show Profile  Reply
Hi

Can you try uninstalling and then installing v12.0.0? I've not had any other reports of that, so there may be an issue with your ieacqres.res file.

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

Pieter192837465

Netherlands
2 Posts

Posted - Aug 11 2023 :  06:54:48  Show Profile  Reply
I have installed version 12.0.0 and i'm still getting the same error.

I have looked at the demo :
\ImageEn\Demos\ImageAcquisition\WIAScanner

This shows a different message being "WIA device not found!"

It depends on the given option.

ienvImageEnView.io.SelectAcquireSource([ieaTwain,ieaWIA]) --> "Resource IEACQ_4000 not
found"
ienvImageEnView.io.SelectAcquireSource([]) --> "Resource IEACQ_4000 not found"
ienvImageEnView.io.SelectAcquireSource([ieaWIA]) --> "WIA device not found!"
ienvImageEnView.io.SelectAcquireSource([ieaTwain]) --> succes

Is there a way to catch the error with [try][Except]?

Could it be that this "Resource IEACQ_4000 not found" also occurs when no WIA driver is availeble?
Go to Top of Page

xequte

38615 Posts

Posted - Aug 11 2023 :  19:24:01  Show Profile  Reply
Hi

This is two different issues. The WIA error is expected, because you have no devices with WIA drivers on the system.

The resource error is unexpected. ImageEn includes a file named "ieacqres.res" which contains resources that the Acquire selection dialog uses to show device glyphs. One of those resources is named "IEACQ_4000".

Looking at the code, I see there is an issue there on some systems, e.g. when there is no monitor scaling. Can you replace the "ieacqres.res" file on any locations on your system with the one in this zip:

attach/xequte/2023811192325_ieacqres.zip
1.66 KB

We'll have a fix for this in 12.3.0 which is coming in the next week or two.

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