Thread: debug assertion failed !

  1. #1
    Registered User
    Join Date
    Dec 2003

    debug assertion failed !

    i am getting "debug assertion failed " while running code. what does it mean ?

    the messages are .....

    debug assertion failed !

    program c:\sss\debug\sss.exe
    File fprintf.c
    line 56

    expression str!=NULL

    abort retry ignore

    what is the meaning of this. how can i fix the problem ?

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    It means your program has a bug
    From the look of things, it looks like you passed a NULL pointer to fprintf

    Since it checked to make sure that pointer was not NULL, that check failed, and you posted your message.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Dec 2003
    thanks are right. i found that mistake. now it is ok

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Debug Assertion Failed!
    By IndioDoido in forum C Programming
    Replies: 31
    Last Post: 03-25-2008, 11:07 AM
  2. debug assertion failed!
    By chintugavali in forum C++ Programming
    Replies: 5
    Last Post: 12-21-2007, 04:05 AM
  3. Visual Studio 2005 Debug Assertion Failed
    By natmas in forum C++ Programming
    Replies: 7
    Last Post: 07-17-2007, 04:28 PM
  4. Debug Assertion Failed!
    By Ray Schmidt in forum C++ Programming
    Replies: 3
    Last Post: 02-21-2003, 09:58 PM
  5. Debug Assertion Failed
    By minesweeper in forum Windows Programming
    Replies: 5
    Last Post: 12-11-2002, 05:11 PM