Is the C-library heap checking on?

Hi,

I am compiling a C-program in VS2003, and started wondering, is the C-library's heap checking on, if I compile with _DEBUG, but use Multi-threaded DLL (/MD) runtime library and link with non-debug version of the C-libraries


Answer this question

Is the C-library heap checking on?

  • SSAS

    I wouldn't say it's any more dangerous to mix debug with release than it is to mix debug with debug. For debugging issues, using release libraries is likely to not yield the information you need, so I'd rather call it inconvenient. For non-debugging / testing concerns, the debug build really shouldn't be used anyway.

    Why don't you want to use the Multi-threaded Debug DLL linking with debug mode, instead of MD



  • fbnts

    Hi,

    thanks for answer. I don't use the MT switch since it causes trouble with a DLL the program
    is using. Haven't had problems with this scenario, was just bit worried about mixing
    _DEBUG preprocessor directive and non-debug C-libraries.

  • hypo

    I wouldn't worry too much about that. Considering this is a debug build, and not something you'd want to publish, the damage potential isn't all that large even if it did cause some strange behaviour (though it's unlikely to).

  • Santiago Aceñolaza

    Is it dangerous to mix _DEBUG with release libraries

  • Is the C-library heap checking on?