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
 Why am I getting Key 'XMP' not found error

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
Waheed Posted - Jun 28 2021 : 04:47:36
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
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jul 02 2021 : 01:40:01
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
Waheed Posted - Jun 30 2021 : 02:42:43
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

xequte Posted - Jun 29 2021 : 16:43:06
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