Re: do you ever found memory leak with STL?

From: Chris Theis (Christian.Theis_at_nospam.cern.ch)
Date: 07/26/04


Date: Mon, 26 Jul 2004 10:02:48 +0200


"John Harrison" <john_andronicus@hotmail.com> schrieb im Newsbeitrag
news:opsbqgkzmv212331@andronicus...
> On Mon, 26 Jul 2004 14:52:03 +0800, rokia <rokiadd@yahoo.com.cn.discuss>
[SNIP]
> Track the number of times that constructors and destructors are called for
> you class. Obviously these totals should be the same, but don't forget to
> include the copy cosntructors if you do this.
>

To the OP:

And if you need to do this probably a couple of times then you might think
about using a generic tracer class for this purpose.

Chris



Relevant Pages

  • Re: How to solve for smallest and largest int?
    ... snip ... ... > A simple example is a function that totals all the elements in an ... > for i in Item'Range loop ... However the programmer who has never used the dangerous languages, ...
    (comp.programming)
  • Re: advantages of C
    ... And constructors and destructors and templates and exceptions and ...
    (comp.programming)
  • Re: C++ Runtime Binding
    ... I believe you are under the misconception that constructors and ... destructors only, since these are the only ones affected in ATL3. ... > "Igor Tandetnik" wrote in message ... >>> called without the CRT? ...
    (microsoft.public.vc.atl)
  • Re: Operator overloading in C
    ... This means that the need of constructors or destructors ... gamut of applications is very effective in a cost/usge relationship. ...
    (comp.std.c)
  • Re: advantages of C
    ... And constructors and destructors and templates and exceptions and ... inheritance and virtual functions and the STL and operator overloading ... cast to void* instead of writing template classes. ...
    (comp.programming)