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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Runtime Error

Status
Not open for further replies.

Tatchina

IS-IT--Management
Apr 18, 2001
38
US
What is a runtime error in general, and why do they occur?
 
A run time error is an error that occurs when your program is executing, after it has been compiled and linked.

All runtime errors can be classified as intent errors, or be chalked up to weak typing.
Disclaimer:
Beware: Studies have shown that research causes cancer in lab rats.
 
A runtime error can be defined as a system generated signal that occurs due to bad programming.

Some common examples of runtime errors are
accessing an array beyond its size, trying to dereference a NULL pointer, division by zero, memory access violations(accessing memory that is not allocated, that cant be accessed etc).

Some of the commong signals that are generated during
run-time exceptions are here...

Bus error (SIGBUS)
Segmentation Violation(SIGSEGV)
Floating point violation(SIGFPE)
Abnormal Termination((This is the final result of
some or any of the above errors) SIGABRT)

On Unices one can expciltly see what error occured
because the program normally prints out the error to the console

Something like...
$a.out
a.out : Bus Error (Killed)

But on Windows machines this kind of diagnostics are not written specifically.

abp :cool:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top