Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ Moderated > Re: Visual Stud...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 4 Topic 9817 of 9984
Post > Topic >>

Re: Visual Studio 2005 complains about memory leaks

by Rune Allnor <allnor@[EMAIL PROTECTED] > Jul 22, 2008 at 09:04 PM

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! ]
 




 4 Posts in Topic:
Visual Studio 2005 complains about memory leaks
Rune Allnor <allnor@[E  2008-07-22 15:31:03 
Re: Visual Studio 2005 complains about memory leaks
Rune Allnor <allnor@[E  2008-07-22 21:04:57 
Re: Visual Studio 2005 complains about memory leaks
marlow.andrew@[EMAIL PROT  2008-07-24 05:58:20 
Re: Visual Studio 2005 complains about memory leaks
"Martin T." <  2008-07-28 02:58:23 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Sep 7 8:42:46 CDT 2008.