Thread.Kill

From Xojo Documentation
Jump to: navigation, search
Method

Thread.Kill()

New in 2005R5

Kills the specified thread.

Notes

Internally, this method will cause your thread’s stack to unwind, destructors for local objects to be called, and so forth. It's a graceful exit which can cause code to execute. It may also cause context switches.


NOTE: A thread should not kill itself. Instead, just return from the Run event handler to allow the thread to terminate.


Example

This example, which is in the Action event of a button, kills the thread.

LongProcessThread1.Kill
Personal tools
Namespaces

Variants
Actions
Main
Content
Starting Out
Dig Deeper
More Help
Toolbox
About