This command stops thread execution, if the thread is active, and then removes the thread and all associated data. It does not remove the project from memory. A stopped thread cannot be continued, but it can be started again with a Start command.
Stop [thread_name | -all]
Prerequisites
The specified thread must have been created by a Start command.
Parameters
thread_name
An optional name indicating the thread to be stopped.
-all
An optional switch that specifies that all threads should be stopped.
Remarks
This command removes and deletes a thread that was created by a Start command. It releases memory and other system resources that are allocated to the thread. Once a Stop command is issued, the thread cannot be resumed. However, it can be started from the beginning with a Start command.
Alternatively, the -all switch may be specified to stop all executing threads.
If a thread has been paused for any reason and did not run to completion, a Stop command must be issued before the project can be unloaded.
Examples
Start My_project
Thread My_project: Running
Thread My_project: Error
Stop My_project
Start My_project
See Also