I also observed that when we pass LayersMerge an array in debug mode ImageEn givs error as follows after LayersMerge code is executed:
--------------------------- Debugger Exception Notification --------------------------- Project Layers.exe raised exception class EListError with message 'List index out of bounds (-1)'. --------------------------- Break Continue Help ---------------------------
I repeat this happens only when we are running the EXE in IDE. If we run the exe out side the IDE then there are no errors generated.
Please also look into this if possible.
I am using Delphi 10.3 Rio Update 3 and ImageEN 8.7.6.
If you break the code at that point, what line/method is running? I suspect it is an outdated reference in TImageEnLayerMView that is caught by an exception handler (which in 9.0.0 does not raise an exception).