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
 TImageEnVect.MouseMove very slow with hidden objects
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

RudBus

Canada
6 Posts

Posted - May 11 2022 :  11:01:02  Show Profile  Reply
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

xequte

38610 Posts

Posted - May 11 2022 :  21:32:32  Show Profile  Reply
Hi

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

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

RudBus

Canada
6 Posts

Posted - May 12 2022 :  06:21:13  Show Profile  Reply
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.
Go to Top of Page

xequte

38610 Posts

Posted - May 12 2022 :  13:42:01  Show Profile  Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: