how to use memory profiler for an outlook add-in?

Use this forum for questions on how to use .NET Memory Profiler and how to analyse memory usage.
Post Reply
suman
Posts: 1
Joined: Mon Jan 21, 2008 11:46 am

how to use memory profiler for an outlook add-in?

Post by suman » Mon Jan 21, 2008 11:51 am

Hello

I created an add-in(tool bar) to outlook 2007 and now we have to perform memory leaks test using .net memory profiler.

how do i do this?
I am interested to get memory leaks of add-in only not complete outlook.

also please guide me how to find and fix the leaks effectively.

any help would be greatly appreciated.

thanks
suman

Andreas Suurkuusk
Posts: 1029
Joined: Wed Mar 02, 2005 7:53 pm

Post by Andreas Suurkuusk » Mon Jan 21, 2008 10:12 pm

To test your Outlook add-in you should start profiling the Outlook executable. As soon as Outlook loads the .NET runtime, the profiler will connect to Outlook. The profiler will collect data about all managed instances, both for your add-in and any other managed types that might exist in Outlook. However, after you have collected a snapshot, you can use the Namespace filter in the Types view to only view types that belong to the namespaces in your add-in.

For some guidance on how to detect a memory leak, you can take a look at tutorial 2 at http://memprofiler.com/tutorials. The tutorial is a bit old and uses an older version of the profiler, but the information on how to locate a memory leak is still relevant.
Best regards,

Andreas Suurkuusk
SciTech Software AB

Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests