VB.NET/XAML Memory Leak on Data change of path (Windows Store App) -
i changing xaml path object's data vb.net code achieve effect in ui. code using is:
do while somecondition await task.delay(somevalue) dim geom pathgeometry = new pathgeometry dim figr pathfigure = new pathfigure dim mycurve quadraticbeziersegment = new quadraticbeziersegment figr.startpoint = new point(somevalue, somevalue) mycurve.point1 = new point(somevalue, somevalue) mycurve.point2 = new point(somevalue, somevalue) figr.segments.add(mycurve) geom.figures.add(figr) mypath.data = geom loop
everything results wanted. noticed there huge memory leak freeze system after 3 minutes. tests show leak in last line of iteration, i.e.
mypath.data = geom
i don't have experience in handling memory leaks. please guide me. thank you.
Comments
Post a Comment