<p dir="ltr">Den 9 aug. 2016 9:08 em skrev "BBerco" <<a href="mailto:bebe0705@colorado.edu">bebe0705@colorado.edu</a>>:<br>
><br>
> Dear all,<br>
> I am developing an application where face/vertex shape models are displayed<br>
> and interacted with. Using a rectangular box selection, the user can<br>
> highlight the selected region, apply a geometric transform to the selected<br>
> vertices and thus modify the original shape.<br>
><br>
> If VTK seems to have all the features I need to fully implement my specs, I<br>
> am however dealing with memory management issues which I have not been able<br>
> to fix yet.<br>
><br>
> Typically, opening a shape model and just leaving it there requires about<br>
> 300MB of memory. Selecting a region adds another 150MB to the memory<br>
> consumption. I was hoping to see the memory going back to 300MB once the<br>
> selection window is closed (and the corresponding actors/polydata cleared),<br>
> but I am left with 350MB of memory usage. So something did not get cleared<br>
> as expected.<br>
><br>
> I understand that this very high level description of those RAM issues can<br>
> only get a very general answer at best. However, I was wondering if you knew<br>
> a debbugging method allowing one to track the memory used by a pointed<br>
> variable (variable pointed at by a vtkSmartPointer)?</p>
<p dir="ltr">I believe there's a VTK_DEBUG_LEAKS CMake variable you can set when building VTK, which enables some memory tracking facilities. I'm afraid I don't know more than that, as I haven't used it myself, but would be interested in your findings as I've been meaning to try it out.</p>
<p dir="ltr">Someone else can probably give more info about this option (I'm on the bus atm).</p>
<p dir="ltr">Elvis</p>
<p dir="ltr">><br>
> Thanks,<br>
> Ben<br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
> --<br>
> View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Memory-management-issues-how-to-track-memory-usage-tp5739607.html">http://vtk.1045678.n5.nabble.com/Memory-management-issues-how-to-track-memory-usage-tp5739607.html</a><br>
> Sent from the VTK - Users mailing list archive at Nabble.com.<br>
> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
><br>
> Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers">http://markmail.org/search/?q=vtkusers</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://public.kitware.com/mailman/listinfo/vtkusers">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</p>