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
 Weird terse exception on initializing TWAIN sources [IEvolution 10.0]
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

brandonbrown

USA
37 Posts

Posted - Dec 29 2021 :  11:44:55  Show Profile  Reply
This was really weird and I'm not sure what to do exactly.

I am getting an Unhandled Exception in the debug (or actually the EXE also) of a longtime working app all of a sudden when doing this call on the form startup:

If (multiScan.ImageList.TWainParams.Sources().Count < 1) Then

<or>

multiScan.ImageList.TWainParams.SelectSourceByName(strScanner)

I put in some test code to create a multi object before that with no issue:

Dim multi As New HiComponents.IEvolution.IEMulti
multi.ImageList.LoadImages("C:\test\test.tif")
multi.Dispose()

The exact error, which doesn't give much detail is:

System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.'

No other details here.

I reinstalled IEvolution, removed the iecore.dll from SYSWOW64 and System32. I don't remember putting them there?

Older versions of the build EXE work fine so I don't think the TWAIN libraries are corrupt. Other scanning apps work fine.

Suggestions?

xequte

38610 Posts

Posted - Jan 01 2022 :  14:11:20  Show Profile  Reply
Hi

Are any of these invalid at the time of your call?

multiScan ImageList TwainParams Sources?

If you delay the call (e.g. till the form is shown) do you still get the error?


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