PreloadAllItems CPU Issue

Discussions about the ThumbnailEx control of GdPicture.NET.
Post Reply
a235301
Posts: 9
Joined: Sat Apr 07, 2012 4:36 pm

PreloadAllItems CPU Issue

Post by a235301 » Sun May 06, 2012 6:13 am

I am experiencing a problem with LoadFromDirectory and PreloadAllItems. If PreloadAllItems is false and there are a fair amount of files in the directory, say 100+, the CPU usage goes to 100%(well using all of one core so in the case of a four core system to 25%). And it just sits there, eating all of one of the CPU core's cycles. Now, if I change PreloadAllItems to true, yes I get 100% CPU usage but that's only until all of the icons have been loaded. This is expected. What isn't expected when PreloadAllItems is false and the CPU just sits there pegged forever. The only way to get it off 100% is to scroll through all of the thumbnails. Once all of the thumbnails have been loaded by manually scrolling then the CPU usage drops to 0%. Any ideas? I would really like to use PreloadAllItems and set it to false and keep the CPU usage down but still give the user the ability to scroll and take the CPU hit when they scroll. But right now even without scrolling the CPU just goes to 100% and sits there forever(unless like I said earlier you just scroll manually through all the thumbnails and then it goes to 0%).

User avatar
Loïc
Site Admin
Posts: 5586
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: PreloadAllItems CPU Issue

Post by Loïc » Sun May 06, 2012 1:22 pm

Hello,

Thank you for the report. The problem has been reproduced & fixed for the next minor release that will be published next week.

Kind regards,

Loïc

a235301
Posts: 9
Joined: Sat Apr 07, 2012 4:36 pm

Re: PreloadAllItems CPU Issue

Post by a235301 » Sun May 06, 2012 3:14 pm

Thank you for the reply. We purchased our license last week. I assume we are eligible then to receive this next minor release at no charge?

User avatar
Loïc
Site Admin
Posts: 5586
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: PreloadAllItems CPU Issue

Post by Loïc » Sun May 06, 2012 3:22 pm

Yes of course. You will also be able to get all upcoming 9.X releases.

See: http://www.gdpicture.com/policies.php

Kind regards,

Loïc

a235301
Posts: 9
Joined: Sat Apr 07, 2012 4:36 pm

Re: PreloadAllItems CPU Issue

Post by a235301 » Thu May 17, 2012 1:26 am

Is the minor release ready with this fix? Is it the 5/8 release?

Thanks!

User avatar
Loïc
Site Admin
Posts: 5586
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: PreloadAllItems CPU Issue

Post by Loïc » Thu May 17, 2012 12:30 pm

Yes it is :)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest