Re: tracking memory leaks and suggestion

From: Anders Holm (aholm@alf.nbi.dk)
Date: Wed Jun 14 2000 - 03:33:07 EDT

  • Next message: I. G. Bearden: "FFS Tracking"

    Hej Peter and others
    
    Whenever you program the creation of a dynamic variable on the heap you
    also ask yourself when it will be deleted. If you can not answer that
    question at this time then do not create the variable.
    
    A static creation count is not the solution to avoid memory leaks, but a
    debugging aid. In general, formulation of relations that should always be
    true and checking them is a common and helpfull tool in programming and
    program verification.
    
    Anders
    
    
    =========================================================
    Anders Holm                     email:   aholm@nbi.dk
    Niels Bohr institute            phone:   (45) 35 32 52 13 
    University of Copenhagen        fax:     (45) 35 32 50 16
    Blegdamsvej 17
    DK-2100 Copenhagen
    Denmark
    ========================================================
    



    This archive was generated by hypermail 2b29 : Wed Jun 14 2000 - 03:37:09 EDT