The stop_statement causes the current task to end and the task is removed from the active list (i.e. the task ID becomes invalid). This has is the same effect as if the task were killed or if then end of program is reached. This statement may cause certain side effects in DLL function libraries (for example certain task related resources may be released).
The syntax is:
stop ;