Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - Heavy memory usage in WPF application ?

 
 
Old 06-27-2006   #1 (permalink)
Griff


 
 

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
 

Thread Tools


Similar Threads
Thread Forum
excessive memory use 'heavy' sites General Discussion
Heavy drive activity followed by application not responding. Vista performance & maintenance
Memory Usage Vista General
Heavy memory usage with remove-item ... PowerShell
Heavy HDD Usage at startup Vista General


Vista Forums 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 Ltd

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