In this section:
This error is generated when an attempt is made to call a function through either an invalid or unknown function pointer. Function pointer is not a function
Code Description Enabled Reported Platform FUNC_BAD Runtime Windows/Unix
Function pointer is not a function
A simple way to generate this error is through the use of the
union data type. If the union contains a function pointer which is invoked after initializing some other union member, this error can occur.
Diagnosis at Runtime
- Line 2: Source line at which the problem was detected.
- Line 3: Description of the problem and the expression that is in error.
- Line 4: The value of the pointer through which the call is being attempted.
- Line 6: Description of the memory block to which this pointer actually points, including its size and the source line of its declaration.
- Line 9: Stack trace showing the function call sequence leading to the error.
- Line 10: Informational message indicating that a serious error has occurred which may cause the program to crash.
The description of the memory block to which the pointer points should enable you to identify the statement which was used to assign the function pointer incorrectly.