Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

Heavy memory usage in WPF application ?

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 06-27-2006   #1 (permalink)
Griff
Guest


 

Heavy memory usage in WPF application ?

I have a UI which basically creates lots of styled buttons (perhaps 200+)
which are all instantiated but not all Visible at any time.

When I run my app and try and step through it there is one final step that
happens after all my code has apparently executed but before the UI actually
appears on screen.
As I can't step thru this part of the execution I don't know what is
happening.

During this step
- the machine goes to 100% CPU usage for about 10 seconds
- the TaskManager shows me that the memory footprint of the app has gone
from approx 40MB to > 400MB

(This is running within VS2005, by the way - Outside VS2005 the increase is
similar but the start and end figures are 25-30MB lower.)

After that it is not too punchy (sometimes it seems like 0.5 seconds between
a click and a button responding).


I have no way to know if this is normal. It seems a pretty outrageous
figure for a program with very little in the way of data structures in it.

Is there any way I can step through where it is happening and see what
exactly is consuming so much mem ?


--
Griff

Beta 2 WPF, XP SP2, VS2005
2GB Ram and 3.2 GHz main CPU,
Asus EAX 300 Se Graphics adapter


(trying to make an industrial UI with XAML/WPF/c#)

My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Memory Usage... Tjingsted General Discussion 2 02-02-2008 04:38 PM
Heavy memory usage with remove-item ... BCM PowerShell 10 11-06-2007 11:11 AM
Memory usage over 90% yang Vista performance & maintenance 7 07-13-2007 04:32 PM
Memory Usage Smilerfive Vista performance & maintenance 3 05-06-2007 03:02 AM
Heavy HDD Usage at startup Wayne Vista General 4 01-28-2007 11:21 AM


Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51