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
 Getting Invalid layer index Error from IE

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
yogiyang Posted - Nov 01 2021 : 09:16:25
Hello,

We have to process around 56000 files in which we have to mix two multip layers files (.psd) preserving the layers, remove a few predefined layers and them merge all layers and save the final file to .jpg.

Our code is working perfectly. But after processing around 6k files we get this error message: Invalid layer index: XX (XX = layer number)

If we break the files in groups of around 1k to 2k each then everything works just great. But this is not always practically possible for us to break all the files in small groups.

Using IE 10.0.0.

What must be the problem?

TIA

Yogi Yang
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Nov 02 2021 : 22:08:20
Hi Yogi

Firstly, does it still happen with 10.2.0? A layer indexing issue was fixed not too long ago.

The error occurs when a call is made to ImageEnView1.Layers[] with an index value that is >= ImageEnView1.LayersCount. It might be in your code or could be in ours. It could be a timing or a resource issue. Are you able to narrow down the steps leading up to the error? Can you create a demo that reproduces it?



Nigel
Xequte Software
www.imageen.com