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
 "IEBitmap invalid" when invoking Proc.CanPasteFromClipboard of a TImageEnMView

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
MarkusK Posted - Apr 09 2024 : 05:27:42
I have a TImageEnMView and a TImageEnView attached to it via the AttachedImageEnView property.
Both are empty.

I want to provide the capability to paste an image from clipboard, so I call ImageEnMView1.Proc.CanPasteFromClipboard to check if there's any image content on the clipboard.
In previous versions, this worked fine.
Since installing version 13.1.0, I get an EIEException "IEBitmap invalid"
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Apr 10 2024 : 02:42:43
Hi

Yes, it is a complete fix.

Nigel
Xequte Software
www.imageen.com
MarkusK Posted - Apr 10 2024 : 02:28:12
Hi Nigel

Yes, I've noticed that ImageCount > 0 would remove the exception. However, this means I could only add an image from clipboard if there's already at least one image in the list.
I suppose your fix will take that into account too?
xequte Posted - Apr 09 2024 : 23:15:54
Hi

I'm afraid there is an issue in 13.1.0, you can email me for a fix.

Alternatively, you can check the control is not empty before accesing Proc, e.g.

canCopy := ( ImageEnMView1.ImageCount > 0 ) and ( ImageEnMView1.Proc.CanPasteFromClipboard  );


There will be an official release later in April.

Nigel
Xequte Software
www.imageen.com