Click to See Complete Forum and Search --> : Books Memory Leak Detect Algorithm
Raymond Lau
April 23rd, 1999, 01:07 PM
Anyone know if there's a good book on detecting run-time bugs such as memory leak?
What I am looking for is a book that go into detail on specific algorithm used for detecting
run-time bugs - like Internal of Run-time Bugs Detection.
Marc Vaughan
May 14th, 1999, 09:28 AM
There are loads of tools (such as Codeguard) which will report information like this giving line numbers where the memory was allocated.
If you don't want to buy one of these then you can always macro malloc as MALLOC and free as FREE and then write a wrapper to the function keeping a linked list with info about where the malloc was done (obviously FREE would delete its reference from the list).
As far as the book approach goes I haven't seen any I'm afraid ...
Hope this helps,
Marc Vaughan
(Sports Interactive Ltd)
kitng98
June 4th, 1999, 02:57 PM
Use NuMega BoundsChecker.. they are worth every single penny you pay for it.
Not only memory leaks, it also detect stray pointers, uninitialized ptr, even COM interfaces....
As for books, I don't know of any, sorry.
codeguru.com
Copyright WebMediaBrands Inc., All Rights Reserved.