Unhandled Application Exception

Occurs when an unhandled exception is detected that causes the application program to crash.

Problem type: Dangling lock

ID

Code Location

Description

1

Exception

Represents the instruction that threw the exception.

Example

void problem1(int *y)
{
    *y = 5;
}

void problem2()
{
    int x = new int;
}

In these (simplified) example functions, two exceptions are possible:

  • Variable y may not reference a valid memory location and therefore the write may cause an exception to be thrown. If that exception is not properly handled, the Correctness Report will show an Unhandled application exception pointing to the write of y.

  • If the process is out of memory, the allocation will throw an exception. If the exception is not handled, the Correctness Report will show an Unhandled application exception associated with the allocation.

Because of the abnormal process termination (crash), the Correctness tool may also report a Missing end task and Missing end site problem.

Possible Correction Strategies

This problem usually exposes an existing bug in your application that appears when the application is run with the Correctness tool.

For more complete information about compiler optimizations, see our Optimization Notice.