Drobe :: The archives
About Drobe | Contact | RSS | Twitter | Tech docs | Downloads | BBC Micro

Keeping a close eye on application memory

By Chris Williams. Published: 6th Sep 2002, 20:36:00 | Permalink | Printable

MalCheck author Erik explains how his handy library works

Earlier this week we reported on MalCheck, a C library for programmers developed by Erik Groenhuis. Erik got back to us recently to tell us about his software and this is what he had to say for himself.

"MalCheck is a system that enables the C programmer to trace problems with malloc blocks", explains Erik. "It consists of a library and a header file. Macros are used to intercept calls to malloc(), free(), realloc() and calloc(). Some extra data is set up to keep track of the allocated blocks. The existing blocks are checked for any signs of corruption. A backtrace of active functions at the time of the call is shown for each block, assisting the user in pinpointing the problem.

"This library came into being because Dr. Smith's excellent MemCheck system could only link with the standard Stubs Clib. Lots of software ported from the GNU environment requires linking with the UnixLib library, so Dr. Smith's can not be used for that. MalCheck offers a freeware alternative, albeit a very much simpler one."

Erik is also the author of RCS for RISC OS.

Links

MalCheck library

Previous: The web at your finger tips
Next: Omega sighted in Scotland

Discussion

Viewing threaded comments | View comments unthreaded, listed by date | Skip to the end

No comments posted - yet. Post one yourself or come back soon.

Please login before posting a comment. Use the form on the right to do so or create a free account.

Search the archives

Today's featured article

  • Using SDL natively
    Neil White makes his move
     2 comments, latest by nex on 17/10/04 10:52AM. Published: 6 Oct 2004

  • Random article

  • More printers supported with Gutenprint update
    Sehr gut
     5 comments, latest by rmac on 21/8/07 11:20AM. Published: 17 Aug 2007

  • Useful links

    News and media:
    IconbarMyRISCOSArcSiteRISCOScodeANSC.S.A.AnnounceArchiveQercusRiscWorldDrag'n'DropGAG-News

    Top developers:
    RISCOS LtdRISC OS OpenMW SoftwareR-CompAdvantage SixVirtualAcorn

    Dealers:
    CJE MicrosAPDLCastlea4X-AmpleLiquid SiliconWebmonster

    Usergroups:
    WROCCRONENKACCIRUGSASAUGROUGOLRONWUGMUGWAUGGAGRISCOS.be

    Useful:
    RISCOS.org.ukRISCOS.orgRISCOS.infoFilebaseChris Why's Acorn/RISC OS collectionNetSurf

    Non-RISC OS:
    The RegisterThe InquirerApple InsiderBBC NewsSky NewsGoogle Newsxkcddiodesign


    © 1999-2009 The Drobe Team. Some rights reserved, click here for more information
    Powered by MiniDrobeCMS, based on J4U | Statistics
    "We incurred the wrath of Chris Williams, the main journalist at Drobe, who told us to 'Take our filthy spam and shove it where the sun doesn't shine'"
    Page generated in 0.0472 seconds.