Thread: Debug Assertion Failure

  1. #1
    Registered User
    Join Date
    Feb 2002

    Debug Assertion Failure

    Hi everybody

    Seems like I made quite a mess here.

    Has anyone ever seen the following message, and can lead me to the possible cause???

    "Debug Assertion Failed.
    line 1017

    EXPRESSION- BLOCK_TYPE_IS_VALID(phead->nblockuse)"

    This error occurs while running my project, and I have no clue as to the reason for it

    Please help


    little Gozlan
    And if you get no joy from music hall
    Remember there is always alcohol
    And If you get no joy from Gin
    Here is the abyss jump in

  2. #2
    Registered User Dr. Bebop's Avatar
    Join Date
    Sep 2002
    Could you post the code that's causing the problem? Usually when I get this problem it's because I didn't allocate enough memory for something and free panics. Like allocating space for a string but forgetting the +1 for the null character.

    Processing error: Stupidity detected.
    Dr. Bebop
    Windows XP Professional Ed.
    Microsoft Visual Studio 6

  3. #3
    Code Warrior
    Join Date
    Nov 2001
    Show us the code. But I'm pretty sure that it has something to do with the free function. Some time ago I had the same problem. I didn't allocate enough memory.
    Current projects:
    1) User Interface Development Kit (C++)
    2) HTML SDK (C++)
    3) Classes (C++)
    4) INI Editor (Delphi)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. File I/O Assertion Failure in VS2008
    By clegs in forum C Programming
    Replies: 5
    Last Post: 12-25-2008, 04:47 AM
  2. Debug Assertion failure problem
    By uldaman in forum C++ Programming
    Replies: 8
    Last Post: 01-21-2008, 02:22 AM
  3. debug assertion failure
    By talz13 in forum Windows Programming
    Replies: 2
    Last Post: 07-20-2004, 11:23 AM
  4. Debug Assertion Failure - bad pointer
    By ventolin in forum C++ Programming
    Replies: 5
    Last Post: 05-24-2004, 10:10 AM
  5. How to tackle a debug assertion failure?
    By juhigarg in forum C++ Programming
    Replies: 2
    Last Post: 11-12-2001, 12:59 PM