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
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Image Caching/Drawing bug
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  


105 Posts

Posted - Feb 15 2021 :  06:10:09  Show Profile  Reply
A few days ago you told me how to scroll up after loading pictures.

It all worked well, but if only a few images are in that folder, and caching (i do disk caching) is turned on, then the ImageEnFolderMView randomly draws images multiple times instead of showing all the needed images.

It seems that altering the selection while the update is locked, screws up caching.

fv.SelectedImage := 0; // this messes up drawing
fv.UnselectImage(0); // this messes up drawing if unselecting a selected item. For example fv.UnselectImage(fv.ImageCount -1); which is selected by default.

if i don't alter selection or disable caching fv.EnableImageCaching := False; it works.
Also if i do a selection change outside of a lockupdate it doesn't mess up the display after it was loaded.
It seems any selection messes up. But i didn't see it with the folder that had 2000 images and a scrollbar. Maybe i just didn't check enough... but on the folder with 7 images i clearly saw it. sometimes it even copies 1 image 4-5 times.


5869 Posts

Posted - Feb 16 2021 :  16:47:03  Show Profile  Reply

I can't reproduce in v9.3.2 (which will be released today).

If you are still seeing it with the new release, can you give me more specific steps to reproduce the issue.

Xequte Software
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To: