Go Back  Xtreme Visual Basic Talk > Visual Basic .NET (2002/2003/2005/2008, including Express editions) > .NET General > ListView & CPU usage


Reply
 
Thread Tools Display Modes
  #1  
Old 09-16-2006, 05:15 AM
stokeentertainm's Avatar
stokeentertainm stokeentertainm is offline
Contributor
 
Join Date: Jan 2005
Location: Stoke-on-Trent, UK
Posts: 436
Default ListView & CPU usage


Hi,

I've got a strange problem which I hope someone can help me with.

I have quite a large VB.NET app. I used ListView controls throughout the app and they all have the same strange behaviour. More and more CPU power seems to get consumed when the lists get larger in size. For example, 20 items is about 2%, 100 items is about 8%, 250 items is about 17%. When I clear the list, the CPU goes back down to 0%.

I haven't implemented any code to process the list when there are items there so I can't understand why the processing power is needed.

Any ideas?

Thanks,

Matt.
Reply With Quote
  #2  
Old 09-18-2006, 07:36 AM
shaul_ahuva shaul_ahuva is offline
Ultimate Contributor

Retired Leader
* Expert *
 
Join Date: Jul 2003
Location: Camp Hill, PA
Posts: 1,992
Default

After googling, it seems as though there is some weirdness on certain platforms. I'm not able to reproduce anything like this on XP SP2.; which o/s are you using?

If possible, could post a code sample of how you're using the listviews?
Reply With Quote
  #3  
Old 09-18-2006, 10:10 AM
stokeentertainm's Avatar
stokeentertainm stokeentertainm is offline
Contributor
 
Join Date: Jan 2005
Location: Stoke-on-Trent, UK
Posts: 436
Default

Thanks for your response.

I am actually using the same stuff, XP with SP2, VB.NET 2005. I will try and get a simple code snippet which recreates the problem.

Matt.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->