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
 TImageEnVect.MouseMove very slow with hidden objects

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
RudBus Posted - May 11 2022 : 11:01:02
I attached a IEV file which contains some hidden objects way out of range (like ObjLeft and ObjTop at -1999673).

The MouseMove ends up calling CalcDistPtObj for visible objects but it is very slow when checking those hidden objects. I had to delete those objects to make it work. You can try the IEV file attached with your Vectorial demo and see what I mean. I don't know how it's even possible to get those objects there in the first place. But let me know if you think of something that could help optimize this.

attach/RudBus/2022511104317_005336.zip
1.99 KB
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - May 12 2022 : 13:42:01
Hi

I'm reluctant to change the code for a single file, in case it introduces unforeseen issues.

You could iterate through the objects after loading to ensure they are within your expected bounds.


Nigel
Xequte Software
www.imageen.com
RudBus Posted - May 12 2022 : 06:21:13
Hi, I have some other files but they all come from this one so once you get the hidden objects saved they will remain there the next time you save it. This could be an isolated case.
xequte Posted - May 11 2022 : 21:32:32
Hi

Is this just one corrupted file, or are you able to reproduce this with other files?

Nigel
Xequte Software
www.imageen.com