POST
|
Hi, I'm working with ArcGIS Runtime SDK for .NET 10.2.7 in WPF application and i found out, that when frequently zooming and panning map with WebTiledLayer in it, memory consumption raises and eventually I end up with OutOfMemoryException. I tried some basic memory profiling and found out that wrong usage of HttpClient is the reason. I have only one layer in map and its WebTiledLayer so I'm quite sure the problem is in this layer and the way it downloads its tiles. Is there any possibility to fix this in next release of SDK? Best wishes Tomáš Vepřek
... View more
09-19-2016
01:30 AM
|
0
|
0
|
1217
|
POST
|
Thanks for the answer, but forcing GC (Garbage collector) isn't good practice and how should we as developers know that map with specific layer needs manual call of GC? When I think about it, it looks like there are probably objects that are moved to GC's Large Object Heap and thus they get collected after a long time (if ever) because they live in second generation of GC. When you know, that using layers such as ArcGISTiledMapServiceLayer creates those objects (many smaller ones or few big ones?), shouldn't the SDK, instead of those who use it, take special care of those layers when map is unloaded? I think it could be considered as bug, because when unloading and loading few maps with several layers, you quickly run out of memory and this is something no one would expect, because everyone hopes GC takes care of controls that are no longer loaded. Thank you.
... View more
09-02-2015
09:40 AM
|
3
|
2
|
1440
|
POST
|
Hi, I have WPF application with ArcGIS SDK for.NET version 10.2.6, when I add multiple MapView controls into some container, lets say StackPanel, each map with its own ArcGISTiledMapServiceLayer, and then i remove them, memory they've used never gets collected. After adding more MapViews application crashes even though memory from removed ones should be released. If I run the app and add MapViews without layers in them, this problem doesn't occur, because when I remove them from their container memory gets freed. I attached sample application that simulates this behavior. Just add few maps, then remove them, repeat this step few times and you'll eventually see app crash. Thank you
... View more
09-02-2015
03:45 AM
|
1
|
4
|
4973
|
Title | Kudos | Posted |
---|---|---|
1 | 09-02-2015 03:45 AM | |
3 | 09-02-2015 09:40 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|