RunTask.TerminationReason
-------------------------

Returns the reason the task was terminated.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [RunTask](component_RunTask.md) | [3.1](newinversion31.md) | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ❌ No |

### Deprecated

This function was [deprecated](deprecated.md). Use [Shell](component_Shell.md) functions instead.

MBS( "RunTask.TerminationReason" ) ### Parameters

none

### Result

Returns the reason the task was terminated.

### Description

Returns the reason the task was terminated.  
Available in OS X v10.6 and later.  
Returns 1 for exit and 2 for an uncaught signal.  
### See also

- [RunTask.TerminationStatus](RunTaskTerminationStatus.md)

This function checks for a license.

Created 18th August 2014 , last changed 13th June 2020

  
[RunTask.Terminate](RunTaskTerminate.md) - [RunTask.TerminationStatus](RunTaskTerminationStatus.md)

[HTML Version](RunTaskTerminationReason.shtml)