Re: memory tracer

Discussion in 'C++' started by RA Scheltema, Aug 14, 2003.

  1. RA Scheltema

    RA Scheltema Guest

    thanks
    that works like a charm
    how you figured that out, i don't wanna know
    but hey it works :)


    > I had the same problems with VC++.
    >
    > Check out the code in the following links:
    > http://www.axter.com/code/debuglogger.h
    > http://www.axter.com/code/debuglogger.cpp
    >
    > My work around solution was to use #define's to redirect the code to a
    > differently named operator.
    > #define delete debug_ext::debug_mem_allocation(__FILE__, __LINE__,
    > __FUNCTION__)-
    >
    > That redirects the delete statements to operator()- of the
    > debug_mem_allocation class.
    > The BIG draw back to this method is that code calling delete[]
    > operator fails to work with it.
    >
    > There's a work around solution for that problem too. Read the
    > debuglogger.cpp commented section, and you'll see examples and usuage
    > definitions.
    > In the commented section look for the debug_mem_allocation class.
     
    RA Scheltema, Aug 14, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Debashish
    Replies:
    3
    Views:
    1,815
    Mike Treseler
    Aug 8, 2003
  2. Samy
    Replies:
    0
    Views:
    503
  3. Replies:
    0
    Views:
    327
  4. Jon Harrop

    Optimise my ray tracer

    Jon Harrop, Jun 2, 2005, in forum: Java
    Replies:
    85
    Views:
    2,391
    Roedy Green
    Jun 26, 2005
  5. Jon Harrop

    Mini ray tracer

    Jon Harrop, Jun 13, 2005, in forum: Java
    Replies:
    0
    Views:
    447
    Jon Harrop
    Jun 13, 2005
Loading...

Share This Page