debug assertion failed !

This is a discussion on debug assertion failed ! within the C++ Programming forums, part of the General Programming Boards category; i am getting "debug assertion failed " while running code. what does it mean ? the messages are ..... debug ...

  1. #1
    Registered User
    Join Date
    Dec 2003
    Posts
    92

    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 ?
    blue_gene

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,505
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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

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, 03: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, 08:58 PM
  5. Debug Assertion Failed
    By minesweeper in forum Windows Programming
    Replies: 5
    Last Post: 12-11-2002, 04:11 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21