GithubHelp home page GithubHelp logo

fbmld's Introduction

About

FBMLD is a FreeBASIC Memory Leak Detector. FBMLD replaces the built-in allocate functions and produces a report of memory that hasn't been freed at the end of the program. It also notifies you immediately when attempting to double-free or free a pointer that wasn't returned from an allocate function. It works in single- and multi-module programs, and it is thread-safe/reentrant.

Usage

To use FBMLD, include the header (which can be placed either in the same directory as your code or in the global FreeBASIC/inc/ directory) before any other code. The memory leak report will be printed to stderr (generally, stderr is the console).

#include "fbmld.bi"

' code involving allocate/callocate/reallocate/deallocate

To use FBMLD in a multi-module program, include the header in each source file (.bas) you wish to monitor for memory leaks. Allocated memory is tracked globally, so memory allocated in one module may be freed in another.

If you do not want to link with the multithreaded runtime or do not need FBMLD to be thread-safe, define FBMLD_NO_MULTITHREADING with the preprocessor before including the header:

#define FBMLD_NO_MULTITHREADING
#include "fbmld.bi"

fbmld's People

Contributors

danielverkamp avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.