Memory profiling for .NET developers


Postby Rauhotz » Thu Mar 11, 2010 12:26 pm

I get the following exception when clicking the "Show Instance List for this class" or sometimes when taking a memory snapshots:

Specified argument was out of the range of valid values.Parameter name: endId
at aV.ReadIdTableEntries(Int32 startId, Int32 endId, ac[] target, Int32 targetOffset)
at dn.b()
at dn.ObjectIsNew(IObject obj)
at Y.a()
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at i.a(StateUpdateType )
at i.a(ControllerState )
at RedGate.Memory.Controller.UIControllers.ClassListController.ClassListController.b(Object , GenericEventArgs`1 )
at S.<>c__DisplayClassd.<.ctor>b__5()
at O.b()

I have Memory Profiler installed. Checking for updates says that their is no update available.
Posts: 3
Joined: Tue Mar 09, 2010 9:52 pm

Postby Paul.Martin » Thu Mar 11, 2010 5:27 pm

What type of application are you trying to debug (a web app / desktop / windows service)?

We have come across this problem on web applications where the multi-threaded version of the garbage collector (serverGC) can cause problems and reverting to the standard workstation garbage collector can often fix this. Please see for the instructions on how to change the garbage collector while running the profiling.
As most of the ASP.NET settings can be set in lots of different ".config" files you may also need to check and set the serverGC tag in the "global" web.config in the CONFIG folder of the .NET installation, in Machine.config and the local web.config.

There definitely should be an update available, as the latest version of ANTS Memory Profiler is Quite why it should not find any updates I am not sure, and I apologise for that.

To manually update the program you can download and install the trial edition from our website, this will update your edition to the latest version.
Posts: 83
Joined: Wed Feb 03, 2010 10:20 am
Location: Cambridgeshire

Postby Rauhotz » Thu Mar 11, 2010 10:59 pm

The application is a desktop application, running as x86 on an x64 windows with default garbage collector (nothing set in the app.config).
Posts: 3
Joined: Tue Mar 09, 2010 9:52 pm

Return to ANTS Memory Profiler Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests