Advanced COM Start method
Stop method

Stops the thread. 

Syntax:

object.Stop()

Remarks:

Stop will always succeed. But if the thread cannot be clearly stopped within the allowed timeout (see Timeout property) it will be terminated. The COMScriptThread object will try to make everything possible to clean up if termination is needed, but still it is recommended to implement the thread's script in such a fashion that it will be able to exit if signaled. For example if you have a task that needs very long time to complete and may need to be interrupted you should implement a check from time to time for a certain value in the Context collection (see Value property and The script in the thread) and exit if it is set to a value that will mean "exit now". This will ensure no sensitive resources will remain locked/reserved.

Applies to: COMScriptThread object

newObjects Copyright 2001-2006 newObjects [ ]