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
 Why am I getting Key 'XMP' not found error
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Waheed

Kuwait
36 Posts

Posted - Jun 28 2021 :  04:47:36  Show Profile  Reply
Why am I getting "Key 'XMP' not found" error and how to avoid it?
It occurs at IO.LoadFromFileJpeg(fileName);
But the image loads correctly.

-----------------
3 Monitors
Windows 10
Delphi 6,2007 and 10.2
ImageEn v.9

xequte

38202 Posts

Posted - Jun 29 2021 :  16:43:06  Show Profile  Reply
Hi Waheed

Can you post some or email me some images that cause the error?

Does the error show only while debugging (run under Delphi)?

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

Waheed

Kuwait
36 Posts

Posted - Jun 30 2021 :  02:42:43  Show Profile  Reply
There is no problem with the images because it's loading. The problem is with the exception that causes the remaining code to be bypassed. And yes I saw the exception while in development, not outside delphi.

BTW. The exception only occurs in Ver. 10, I have gone back to version 9.2.6_32833 and there was no exception.

Here is the code I used to load the image:
ImageEnView1.IO.LoadFromFileJpeg(fileName)


And this is the component:
object digitalImage: TImageEnView
  Left = 1
  Top = 1
  Width = 444
  Height = 312
  Background = clBtnFace
  MouseWheelParams.ZoomPosition = iemwMouse
  LegacyBitmap = True
  MouseInteractGeneral = [miScroll]
  ShowButtons = [iebtZoomOut]
  Align = alTop
  TabOrder = 0
end


I also noticed that unit iexUserInteractions is added in v.10 (I removed in v.9)

attach/Waheed/202163091223_1.zip
226.12 KB
-----------------
3 Monitors
Windows 10
Delphi 6,2007 and 10.2
ImageEn v.9

Go to Top of Page

xequte

38202 Posts

Posted - Jul 02 2021 :  01:40:01  Show Profile  Reply
Hi Waheed

I'm not seeing this in my testing of that image. Is this a 32bit or 64bit app?
What is the value of IEGlobalSettings().ActiveJPEGEngine?

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