ANTS Memory Profiler

Latest version: 7.4

ANTS Memory Profiler

Knowledge Base

Problems with ANTS Memory Profiler 5 and multiple AppDomains

Category: Troubleshooting & error messages
Date: 04 Jan 2011
Product: ANTS Memory Profiler
There seems to be a generic issue with the above: the problem is with obtaining the right object references due to the different AppDomains used. The symptoms are a crash in the ClassLoader.

We have a workaround that is good (for profiling purposes at least).

Parametize your main method with:


        [System.LoaderOptimization(LoaderOptimization.MultiDomain)]

or


        [System.LoaderOptimization(LoaderOptimization.MultiDomainHost)]


If you don't have a main method, for example: if you have a WPF project, take a look at this article which shows you how to do it:

http://www.matthidinger.com/archive/2008/10/12/increase-addin-performance-with-maf-and-wpf-using-loaderoptimization.aspx

Document ID: KB200907000416 Keywords: ANTS,Memory,Profiler 5,AppDomains

Was this article helpful?

Search support
Forums

ANTS Memory Profiler

all products