This is a migrated thread and some comments may be shown as answers.

Map cache memory leak

1 Answer 76 Views
Map
This is a migrated thread and some comments may be shown as answers.
Shrinand
Top achievements
Rank 1
Shrinand asked on 02 Dec 2015, 09:41 PM

I use BingMapProvider with IsTileCachingEnabled set to true, and I notice memory leak because of the cache even though I call the Dispose() function for the provider class.

Currently I have a workaround by deriving a CustomBingMapProvider from BingMapProvider to expose the MapSources to public. When disposing, I set all the CacheStorage of the MapSources to null. This workaround works for me.

 Do you have any idea or any solution to dispose the cache properly?

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 04 Dec 2015, 08:37 AM
Hi Shrinand,

The CacheStorage can be cleared with invoking Dispose() method of the RadMap control. Could you please try this out in your application and let us know if everything is cleared up successfully. If not, can you send us more details / steps about your scenario , this way we would be better able to create a test project as close as possible to yours. Thank you in advance.


Regards,
Petar Mladenov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Map
Asked by
Shrinand
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or