Debug Assertion Failure in dbgheap.c

Posted on 2006-05-01
Last Modified: 2008-01-09
Hi Experts,


The application that I am working on crashes with this error message.  I do
not have the problem with the Release version.  It only happen in the Debug version.
It was actually crashing on a function call from a static library which I don't have the
source code.  But, I did some googling and it appears that this is something to do with
the Runtime/Debug mismatch.  But, I have checked my setting and all seems to be ok.  The
thing that the problem only happening in Debug version confirms that this is a problem related to
the Runtime/Debug mismatch.  Can anybody tell me how to fix this or some insight into this....

Question by:thanesh
    LVL 32

    Accepted Solution

    First, you only get this in the DEBUG build because this macro or function (can't remember which it is) doesn't do anything in the RELEASE build.  There is no heap debug code in the RELEASE build for this to check so it's essentially a NOP.

    Second, this is reporting that there is a problem in the HEAP.  Could be, as you noted, a build mismatch problem but that is unlikely unless you are doing some tricks with the libraries or build options.  More likely it means exactly what it says, you've done something in your application that is trashing part of the heap and this is a RED FLAG that you need to resolve this prior to releasing your app.
    LVL 32

    Expert Comment

    I take it you found the problem?  

    You might want to post what you found so that someone who views this question in the future might learn from your situation.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    bigDiff challenge 17 62
    fizzArray3  challenge 1 48
    java constructor error 8 66
    dividesSelf challange 15 61
    A short article about problems I had with the new location API and permissions in Marshmallow
    If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now