From e23d3f90e5ecb3d427af1605a81478e3ff36e1d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Tue, 6 Jun 2023 14:22:40 +0200 Subject: [PATCH] Added warning for garbage collection --- src/OpenMesh/Core/Mesh/ArrayKernel.hh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/OpenMesh/Core/Mesh/ArrayKernel.hh b/src/OpenMesh/Core/Mesh/ArrayKernel.hh index d0395999..56398b70 100644 --- a/src/OpenMesh/Core/Mesh/ArrayKernel.hh +++ b/src/OpenMesh/Core/Mesh/ArrayKernel.hh @@ -298,7 +298,9 @@ public: * * \note Garbage collection invalidates all handles. If you need to keep track of * a set of handles, you can pass them to this function. The handles that the - * given pointers point to are updated in place. + * given pointers point to are updated in place. Warning: You cannot update + * handles stored in a mesh property, as the memory might be moved + * during garbage collection! * See also \ref deletedElements. * * @param vh_to_update Pointers to vertex handles that should get updated