Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Debug Assertion Failed!

Status
Not open for further replies.

kaya17

Programmer
Feb 9, 2004
78
0
0
SG
what does it mean?

any help would be much appreciated!
 
asserts are used to check for things which are supposed to be always true in a program.
If something becomes unexpectedly false, then a debug assert is the result.

Eg.
Code:
double my_square_root ( double x ) {
  assert( x >= 0 );  // can't root negatives
}
If you try and take the root of a negative number, you'll get an assert failure.

Using the debugger, track back from where the assert happened.

--
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top