On 22 Jul, 23:31, Rune Allnor <all...@[EMAIL PROTECTED]
> wrote:
> When I run the program in debug mode (VS2005) the execution monitor
> (or whatever the correct term is under VS) complains about 'memory
leaks'.
....
> As far as I can tell from the data dump, the problem occurs in a
std::set
> which contains std::strings,
>
> std::set<std::string> data;
Immediate problem solved: I use a factory pattern to set up a rather
large data structure. The data dump contained items which made me
suspect that data structure. I didn't understand what was going
on because I handled the data structure correctly in the main
program.
The problem turned out to be a bug in the factory, not the main
program.
> but I haven't been able to pin-point the offending variables with any
certainty.
This probably veers off topic wrt this newsgroup, but if anybody
has a hint on how to identify the offending data items when
working with VS, I would be very interested in hearing about it.
Rune
--
[ See http://www.gotw.ca/resources/clcm.htm
for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]


|