johnvisiomvp

Life with Visio and other Microsoft Toys!

Thanks for the Memory

leave a comment »

Last October, Peter Torr from Microsoft, wrote a blog on checking memory usage. He wrote a Memory Diagnostic Helper that adds an extra counter next to the EnableFrameRateCounter that is usually enabled in App.xaml.cs. It is NOT part of the Frame Rate counter, just next to it. So if you turn off the Frame Rate counter, the Memory Diagnostics still shows.

http://blogs.msdn.com/b/ptorr/archive/2010/10/30/that-memory-thing-i-promised-you.aspx

One thing I like about his post is that he provides a downloadable example. Other WP7 examples give most of the XAML and C# code, but occassionally there is one step missing to prevent creating an app from the samples. Sometimes it is the omission of a reference or a Using. With a downloadable example, I can tear apart what is going on. I have learned a lot of things from these sample apps that are not beyond what the original writer was trying to convey.

For Peter Torr’s Memory Diagnostic Helper he adds a reenforcing element by changing the colour from green to orange when memory usage goes above 75% and then to red when it gets above 90%.  As I said, the example contains a few gems that help me understand how to put together an app.

PS: Ginny Caughey (#GCaughey) Thanks for the reminder

John Marshall… Visio MVP       Visio.MVPs.org

Advertisements

Written by johnvisiomvp

September 24, 2011 at 6:30 pm

Posted in Windows Phone 7, WP7

Tagged with ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: