User talk:Daviddoria

From KitwarePublic
Revision as of 18:35, 3 March 2010 by Dpai (talk | contribs)
Jump to navigationJump to search

Smart Pointers

This is Ken Porter, from the mailing list. Feel free to post questions on my Talk page (I've got email notification enabled) or directly by email. -- ScratchMonkey 01:24, 18 February 2010 (UTC)

I built the example, both with and without the const reference edit I suggested on my Talk page, and I'm not getting a leak popup when it exits. I'm building with the following commands:

<source lang="winbatch"> @rem build VTK cd g:\devel\vtk\output\vs9 cmake -D CMAKE_DEBUG_POSTFIX="_d" -D CMAKE_INSTALL_PREFIX=G:/devel/VTK/vs9 -D VTK_DEBUG_LEAKS=ON -G "Visual Studio 9 2008" ..\..\vtk-5.4.2 @rem build rectangular button example cd g:\devel\vtkButton\bin cmake -D CMAKE_DEBUG_POSTFIX="_d" -D VTK_DEBUG_LEAKS=ON -D VTK_DIR="g:/devel/VTK/vs9/lib/vtk-5.4" -G "Visual Studio 9 2008" ../src --debug-output </source>

I found I had to edit the resulting vcproj file to add the "_d" suffix to all the VTK library references in the Debug configuration.

-- ScratchMonkey 00:23, 19 February 2010 (UTC)

I use Visual Studio IDE for all my VTK and cout does not take std::string as a parameter to "<<" . Maybe other IDEs work I wasn't aware. Dpai 18:35, 3 March 2010 (UTC)