Numega bound checker really useful

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gnanapoongothai
    New Member
    • Jun 2007
    • 62

    Numega bound checker really useful

    hi to all,
    i have been programming with c/c++ in vc++ platform with multithreading concepts. we are using intel thread tools for debugging. i want to know about Numega bound checker and how in which scenario to use it. Memory leak are identified or the give suggestions to modifiy coed , plz any one used this tool would suggest me to go for this or not.

    thanxs
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    BoundsChecker is a very good idea.

    What it does is overloas the new and delete operators with its own. After it calls its new and delete, it calls your new and delete so it appears to have done nothing.

    However, what it has done is create a database of every allocation you have made and identifies the file and the line number along with the size of the allocation. When you delete the BoundsChecker delete removes the line form the database before calling youer delete. At the end, if the database is empty, you have no leaks. Otherwise, you get a report of every allocation by file and line number that you made that was never cleaned up.

    It will check for various allocated resources, not just memory.

    You will need to recompile and relink your code using the BoundsChecker overloads.

    When you run, the execution time will be very, very slow. But that's OK since you will make a release build without BoundsChecker after the leaks are cleaned up.

    Comment

    Working...