Boost logo

Boost Users :

From: Gregory, Matthew (matt.gregory_at_[hidden])
Date: 2004-02-03 12:43:33


Ben Hastings wrote:
> The only memory allocation I can see is for the array that pclasses
> points to and the strings in it. These are freed in do_free() which is
> called by the destructor of the last instance of w32_traits_base.
> Since each of the derived classes of w32_traits_base
> (w32_regex_traits<char> and w32_regex_traits<wchar_t>) has a static
> instance of itself as a member, the memory will not be freed until after
> main() returns. So if you call _CrtDumpMemoryLeaks() at the end of
> main() this memory will wrongly be reported as leaked.

Ben, this was exactly my problem. Sorry for the bonehead and thanks
for the help.
_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net