Jump to content
CCleaner Community Forums
andreasm

slow deleting of entries in listbox under "issues"

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. :)

Share this post


Link to post
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)

Share this post


Link to post
Share on other sites

thanks! I wasn't aware of these two methods.

 

Did the programmer of ccleaner read this thread?

Will this be implemented in ccleaner ?

Share this post


Link to post
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?

Share this post


Link to post
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.

Share this post


Link to post
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 :)

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...