Hi,
Just to summarise, we are using the v3.0 API for Silverlight (v5). The app does a lot of custom Dispose work to get memory at a minimum as users are constantly opening and closing new maps in the same application instance. When a user closes a tab with and ESRI control on it and the user has done so before the map has finished rendering, a "Error:Object reference not set to an instance of an object" is triggered in :
ESRI.ArcGIS.Client.Map.loadLayersInView
stack trace :
- ESRI.ArcGIS.Client.Map.<>c_DisplayClass22.<beginZoomToExtent>b_21()
- ESRI.ArcGIS.Client.ThrottleTimer
- MS.Internal.CoreInvokeHandler.InvokeEventHandler
- MS.Internal.JoltHelper.FireEvent
Understandably this is because I am flushing ESRI's layer contents on close and a 'Extent = {new map location}' is being triggered right before a tab is closed.
Is there a way to suppress this error (or perhaps get a null check added into the next rev of ESRI API)?
Omad