Select to view content in your preferred language

Custom Clusterer Possible Memory Leak

650
0
10-31-2011 12:51 PM
HamidMokdes
Occasional Contributor
Hi;

I have created a custom Clusterer [inherited from CraphicClusterer object] that displays the number of features [pretty much as the sample does: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#CustomClusterer] the only difference however is that I do add an attribute to the graphic I return from call to OnCreateGraphicmethod that contains the list of objects [Features] that are grouped into that cluster, because I do need to show the items as a grid when end user hovers over the cluster symbol.

What I have noticed is that memory just keeps growing up when users pans /zooms as those clusters are recalculated. Do we have access to the list of graphics created in the previous pass so that we can go and dispose/Clean our custom objects ?

Can you please help me on this ?

Thanks,
0 Kudos
0 Replies