I've been testing a number of RAW formats using ImageEn and have found some that cause an error message: 'Range Check Error'
As they are big files, I've uploaded them to andybellphotography.com/ImageEn/leica.zip
The error occurs if CameraRawEngine is set to ieenDLL. If I set it to ieenLegacy they load OK.
Maybe the underlying issue is with LibRaw, but it causes the 'Range Check Error' to display as a modal dialog, which means I can't trap the error and try a different approach..
I'm on ImageEn 9.2.5
Andy
This is the callstack when loading RAW_LEICA_DLUX3.RAW:
I'm running RAD studio 2007, so it's 32 bit. I get the same errors in 9.3.1. both in Delphi and in Builder and there are some very weird (large) values being shown in the debugger...
For example, the RAW_LEICA_M240.DNG image causes the range check error in tiffilt.pas line 3552 where value dpos is 4283923821 - massively larger than the file it's reading... I've sent you another example by email.
So it looks like some data overflows are occurring in the 32 bit versions.
LibRaw is able to read these files in my C++ Builder 32 bit build of it, so maybe there's some data problem in the ImageEn LibRaw implementation?