Jump to content

slow deleting of entries in listbox under "issues"


andreasm

Recommended Posts

If there are many problems found under "issues", the list is very long.

 

After the program fixed the problems, it clears that listbox.

But the clearing-process it is very slow, because it deletes each item of the listbox after each other.

 

As I programmed in Borland Delphi, it had this problem, too.

But I solved it in that way:

First hiding the listbox, then clearing it and then make it visible again. That's much faster!

 

 

I hope you know what I mean. :)

my private homepage www.energie-bewusstsein.de - stop wasting energy!

Link to comment
Share on other sites

Haha, I know what you mean. I wrote Dial-a-fix in Delphi 7.

Better than hiding the box itself is to use the included BeginUpdate and EndUpdate methods:

 

ListBox1.BeginUpdate;

<insert or delete stuff>

ListBox1.EndUpdate;

 

I hate VB (which is what CCleaner is written in) :D

But not only that, most of the components on the form are non-standard even to VB (note all of the OCXs that get installed, ugh)

 

I also hate the way HijackThis does smooth scrolling (long pause during the first vertical scroll, then it gets back to normal speed)

Click here if CCleaner Issues are re-appearing

 

DjLizard.net

DjLizard.net wiki

Dial-a-fix

Dial-a-fix tips

DjLizard.net software support forum

 

Do you live in Bradenton, Sarasota, Tampa, or St. Petersburg, Florida? Visit Digital Doctors where I work :)

Link to comment
Share on other sites

Now talking programming language...

What about VB.NET

 

I am programming in it and it seems very easy. Visual Studio does help.

 

Would CCleaner be better if it was written in .Net.

 

I see one (big) problem - you have to download the Framework runtime

 

But generally, isn't it better?

Link to comment
Share on other sites

It's a managed language, so garbage collection and most memory functions are handled by the runtime rather than the developer. .NET seems to be for RAD (rapid application development) the way VB is, but with managed code (VB is unmanaged). C++ is unmanaged, and so is Delphi, etc. I would say CCleaner would not be better in .NET.

Click here if CCleaner Issues are re-appearing

 

DjLizard.net

DjLizard.net wiki

Dial-a-fix

Dial-a-fix tips

DjLizard.net software support forum

 

Do you live in Bradenton, Sarasota, Tampa, or St. Petersburg, Florida? Visit Digital Doctors where I work :)

Link to comment
Share on other sites

Well, that means one thing - CCleaner should not be programmet in VB.Net :)

 

However I agree, that the ListBox should be fixed

 

I often clean others computers, and it is a pain in the #?@ to clean 300+ threads on a slow computer

 

Hope it will be fixed soon :)

Link to comment
Share on other sites

Well, that means one thing - CCleaner should not be programmet in VB.Net :)

 

However I agree, that the ListBox should be fixed

 

I often clean others computers, and it is a pain in the #?@ to clean 300+ threads on a slow computer

 

Hope it will be fixed soon :)

 

I mentioned this in an earlier thread. In VB and VB.Net, most controls have a Redraw property. Just set it to False, call the Clear, and then set the Redraw to True. The last set to Redraw = True, refreshes the control and contents. This also works when doing selective as well. Just do the Redraw=False, Clear

item(s), Redraw=True and the new listbox items will be displayed (provided you kept the contents un-selected).

 

I also hope that eventually the progressbar is fixed as well as the Fix Selected issues ...

When fixing all items and the listbox is cleared, the progressbar is still set to 100% (should be reset to 0%) and the Fix Selected issues ... button is still enabled (should be disabled since the list is cleared).

 

But these are just cosmetic ... that only program developers mostely see.

Link to comment
Share on other sites

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.