C Board  

Go Back   C Board > General Programming Boards > C++ Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 05-09-2004, 09:14 AM   #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
blue_gene is offline   Reply With Quote
Old 05-09-2004, 09:26 AM   #2
and the hat of vanishing
 
Salem's Avatar
 
Join Date: Aug 2001
Location: The edge of the known universe
Posts: 21,214
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.
Up to 8Mb PlusNet broadband from only £5.99 a month!
Salem is offline   Reply With Quote
Old 05-09-2004, 11:23 AM   #3
Registered User
 
Join Date: Dec 2003
Posts: 92
thanks salem.....you are right. i found that mistake. now it is ok
__________________
blue_gene
blue_gene is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Debug Assertion Failed! IndioDoido C Programming 31 03-25-2008 11:07 AM
debug assertion failed! chintugavali C++ Programming 5 12-21-2007 04:05 AM
Visual Studio 2005 Debug Assertion Failed natmas C++ Programming 7 07-17-2007 04:28 PM
Debug Assertion Failed! Ray Schmidt C++ Programming 3 02-21-2003 09:58 PM
Debug Assertion Failed minesweeper Windows Programming 5 12-11-2002 05:11 PM


All times are GMT -6. The time now is 01:37 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

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