Hello,
Hi Will, thanks for your quick answer.
True. Here is the updated code:
> This object, my_path, has not yet gone out of scope. Why would you expect
> its memory to have been reclaimed in the line that follows?
fs::path my_path( "C:/bla.dat" );
#define _CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>
#define BOOST_FILESYSTEM_VERSION 3
#include <boost/filesystem/convenience.hpp>
namespace fs = boost::filesystem;
int main(int argc, char* argv[])
{
{
}
_CrtDumpMemoryLeaks();
return 0;
}
{145} normal block at 0x00000000003F7EE0, 24 bytes long.
-- output:
'test.exe': Loaded
'C:\gil_contributions\solutions\vc10\test\x64\Debug\test.exe', Symbols
loaded.
'test.exe': Loaded 'C:\Windows\System32\ntdll.dll', Cannot find or
open the PDB file
'test.exe': Loaded 'C:\Windows\System32\kernel32.dll', Cannot find or
open the PDB file
'test.exe': Loaded 'C:\Windows\System32\KernelBase.dll', Cannot find
or open the PDB file
'test.exe': Loaded 'C:\Windows\System32\msvcr100d.dll', Symbols loaded.
'test.exe': Loaded 'C:\Windows\System32\msvcp100d.dll', Symbols loaded.
Detected memory leaks!
Dumping objects ->
Data: < ? > 88 09 F6 3F 01 00 00 00 01 00 00 00 00 00 00 00
{142} normal block at 0x00000000003F7D60, 16 bytes long.
Data: <@ ? > 40 8B F6 3F 01 00 00 00 00 00 00 00 00 00 00 00
{141} normal block at 0x00000000003F7CE0, 16 bytes long.
Data: < ? > 10 8B F6 3F 01 00 00 00 00 00 00 00 00 00 00 00
Object dump complete.
The program '[3628] test.exe: Native' has exited with code 0 (0x0).
It's getting late here. Maybe I don't see the forest because there are tree? ;-)
Christian
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users