Quantcast
Channel: MapWinGIS ActiveX Map and GIS Component
Viewing all articles
Browse latest Browse all 2341

New Post: Memory usage increases without control

$
0
0
Hi,

I Don't know if anyone is still interested but doing rather the same code with 4.8.8, I found also that Cleardrawing disables future drawings to the same layer and that it's necessary to recall NewDrawing. With following lines, in a loop, I didn't notice memory increase and drawing handler keeps the same value
With WinMap1
.ClearDrawing(gpsLayer)
.NewDrawing(MapWinGIS.tkDrawReferenceList.dlSpatiallyReferencedList)
.DrawPointEx(gpsLayer, gps.x, gps.y, 12, 255)
.Redraw()
end With
By the way, I noticed that it's necessary to set .DisableWaitCursor = True to avoid cursor update during .Redraw() but setting it to false and true again doesn't work, cursor keeps updating after "false"....


As a conclusion, it seems that ClearDrawing should be RemoveDrawingLayer and that there is no function EraseDrawing.

Olivier

Viewing all articles
Browse latest Browse all 2341

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>