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
 Weird terse exception on initializing TWAIN sources [IEvolution 10.0]

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 - Dec 29 2021 : 11:44:55
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?
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jan 01 2022 : 14:11:20
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