![]() Error Checking is Mandatory |
![]() DEVELOPER |
![]() |
Each P4API call must be immediately checked for error status on return. Continuing in the face of errors will give undefined results. It may be useful to include a status variable in the Task parameter list that is updated by each member function as the function successfully executes. Special programmer-defined values could be set if an error function (task or function) causes early termination of the Task. Remember that the current value of the ‘Out’ and ‘Both’ Task parameters will be returned to the caller at the termination of the last function executed, whether or not it was the Task error function. This status variable can be used to give an unambiguous indication that the Task either completed as expected, or was terminated abnormally.
Topic ID: 540049