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
 Problem with TwainParams and x64 with iEvolution
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

brandonbrown

USA
37 Posts

Posted - Jan 19 2022 :  23:26:43  Show Profile  Reply
This seems like another weird problem. This little snippet, or really any that access the TwainParams Class from within IEMulti or IEViewer is throwing an exception, but only when compiling with x64. The same code, when selecting Any CPU, works fine, not Exception.

In general, the Acuire series works in x64, but nothing from TwainParams. I can select my scanner with:

IEmulti.Imagelist.SelectAcquireSource();
Scanner name is returned in strScanner=IEmulti.ImageList.AcuireParams.SelectedSource
IEMulti.ImageList.AcquireFromTWain();

This however, does not work if called after you scan a page in x64, but does for Any CPU:
IEMulti.ImageList.TWainParams.GetSystemDefaultSource();

Nothing from the TWainParams class works in x64 from either the IEmulti or IEViewer.

The exception is:

Exception thrown: 'System.AccessViolationException' in sfScanPro.exe
An unhandled exception of type 'System.AccessViolationException' occurred in sfScanPro.exe
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

I also tried it in a console app, same problem, code below:

multiScan.ImageList.SelectTWainSource();
multiScan.ImageList.TWainParams.ShowSettingsOnly = true;
multiScan.ImageList.AcquireFromTWain();

Excpetion occurs on the TWainParams line.

I uninstalled, deleted iecore.dll from all locations found in the c:\windows directory and reinstalled, same issue. Works on everything when using Any CPU, fails on x64.

Is there anything else I should be initializing?

xequte

38610 Posts

Posted - Feb 02 2022 :  20:57:24  Show Profile  Reply
Hi Brandon

We'll need to investigate this.

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

xequte

38610 Posts

Posted - Apr 05 2022 :  22:46:31  Show Profile  Reply
Hi Brandon

We have a fix for this in the current beta.

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