Memory leak when using pcl/Vtk visualizer with MFC (VS2022).
Visual studio reports memory leak when adding: #include <pcl/visualization/pcl_visualizer.h> to the project.
(just adding the header and running the application gives memory leak at the exit)
Detected memory leaks! Dumping objects -> {900} normal block at 0x000002AE992B26F0, 16 bytes long. Data: <0 + > 30 87 2B 99 AE 02 00 00 00 00 00 00 00 00 00 00 {896} normal block at 0x000002AE992B2B50, 16 bytes long. Data: < H+ > A0 48 2B 99 AE 02 00 00 00 00 00 00 00 00 00 00 Object dump complete.
Intel inspector points to vtkcommoncore-9.2d.dll
-PCL was installed using vcpkg (x64-windows) . the lib is linked with MFC Shared dll (Debug version)
-I also tried the VS "delay laoded dll's" options but the memory leaks persist.
To Reproduce
install pcl using vcpkg on windows . create MFC shared dll project and link pcl lib. Add #include <pcl/visualization/pcl_visualizer.h> header. Run the application in debug mode. Close the application. check the output.
Environment:
OS: Win 10 Compiler: MSVC - VS2022 PCL Version : vcpkg (x64-windows)