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
 Problem with TwainParams and x64 with iEvolution

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
brandonbrown Posted - Jan 19 2022 : 23:26:43
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?
2   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Apr 05 2022 : 22:46:31
Hi Brandon

We have a fix for this in the current beta.

Nigel
Xequte Software
www.imageen.com
xequte Posted - Feb 02 2022 : 20:57:24
Hi Brandon

We'll need to investigate this.

Nigel
Xequte Software
www.imageen.com