|
C++ runtime errors could be caused by a variety of things:
1. Division by zero, underflow, or other ludicrous arithmetic operations.
2. Stack overflow. Basically, the program had a recursive routine that had no base case, causing the stack to overflow and program termination.
3. Page fault. Accessing a NULL pointer. Dereferencing a NULL pointer. Basically, things that involve incorrect things to do with NULL pointers. (I know, I have to mess around with this in the graphics programming I do.) It could also be caused by running out of disk space for memory paging and swapping.
4. Segmentation fault. Basically, the program attempted to access memory that is "forbidden". This could be caused by uninitialized pointers, NULL pointers, and anything that could cause a page fault.
Cymbeline
|