NO

Author Topic: Tool to check pointers and objects  (Read 2701 times)

leandrojardim

  • Guest
Tool to check pointers and objects
« on: April 22, 2011, 12:24:35 AM »
Hi again! :)

Like I said before, I am trying Pelles C 4.50 but I would need now a kind of a tool (can be code, library, program, etc.) to check for objects bounds and to validate pointers and report memory leaks. For example, some years ago, I had seen in this board a library to do this, but I dont remember its name and I dont have sure on what words I could use to find it. I am looking for any program of this kind you can know, thats because I want to choose the best for me.

« Last Edit: April 22, 2011, 11:41:58 PM by leandrojardim »

JohnF

  • Guest
Re: Tool to check pointers and objects
« Reply #1 on: April 22, 2011, 09:50:29 AM »
You can try TMalloc on my web site.

http://www.johnfindlay.plus.com/pellesc/libs/libs.html

11k) TMalloc version 2.0 (14th July 2003) - it checks for not free-ed malloc blocks, bad pointers passed to free and has been extended to check for out-of-bounds copying when using various string functions.

The tmalloc library is intended as a check whilst developing.

malloc calloc realloc free strcpy strcat strncat strncpy memcpy memmove wcscpy wcscat wcsncpy wcsncat wcstombs sprintf snprintf

It may not do all that you require the code could be easily modified.

John

leandrojardim

  • Guest
Re: Tool to check pointers and objects
« Reply #2 on: April 22, 2011, 11:40:12 PM »
Thanks John! :)

This is the name of the library I had seen in this board. :)