laptop and a wrench

Bug

Memory usage grows rapidly when TOC.Refresh is called.

Zuletzt veröffentlicht: August 25, 2014 No Product Found
Bug-ID-Nummer NIM011068
EingereichtAugust 20, 2007
Zuletzt geändertJune 5, 2024
Gilt fürNo Product Found
Gefunden in Version9.3
Behoben in Version9.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.

Schritte zur Reproduzierung

Bug-ID: NIM011068

Software:

  • No Product Found

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln