laptop and a wrench

Bug

Memory usage grows rapidly when TOC.Refresh is called.

Last Published: August 25, 2014 No Product Found
Bug ID Number NIM011068
SubmittedAugust 20, 2007
Last ModifiedJune 5, 2024
Applies toNo Product Found
Version found9.3
Version Fixed9.3
StatusFixed

Workaround

Notes from Art on workarounds for this issue, and information on why memory is increasing when toc.refresh is called.There are two work-around’s here:1) Set UseMIMEData to false oneverything. This will essentially do the same thing as #22) Force the Removal of the MIMEData objects from session state either using StateManager or the <a href="http://ASP.NET" target="_blank">ASP.NET</a> Session State object.NOTE: In looking through the code, I did notice that the TOC (as with some other objects using MIMEData) are not calling the method correctly and therefore the objects stored in session are never being removed from session state. We are a creating a CR for this now and will deal with it in the next release (SP or whatever).The way our session objects are stored on the session is through a global object known as StateManager. This object is public off the base class of our web controls (including CompositeControl) and can be used directly. In this type, we determine if session can be used, if it can, all objects are stored in session, if not, then it will try and use ViewState. In your case, it is obviously using Session State. Session objects are stored in the following format:String.Format("{0}{1}_{2}", PageID, ControlID, property )For the work-around, we can simply enumerate the objects in session and if type is MIMEData, you can quickly remove it from Session prior to calling Toc.Refresh(). I did a quick experiment and that does the trick for me. Alternativley, we can refine this to only removing the Toc’s Node’s MIMEData object by looping on the Node’s of the TOC to find the image url, if session object is MIMEData and URL == Node’s URL, then remove from session.

Steps to Reproduce

Bug ID: NIM011068

Software:

  • No Product Found

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options