In this section:
This error is generated whenever an expression operates on an uninitialized pointer. Expression uses uninitialized pointer
Code Description Enabled Reported Platform EXPR_UNINIT_PTR Runtime Windows/Unix
Expression uses uninitialized pointer
In the following code uses an uninitialized pointer.
Diagnosis at Runtime
- Line 1: Source line at which the problem was detected.
- Line 3: Description of the problem and the expression that is in error.
- Line 4: Stack trace showing the function call sequence leading to the error.
This error is normally caused by omitting an assignment statement for the uninitialized variable. The example code can be corrected as follows: