By default, algorithm calculation can be stopped by means of the Stop button in the Start Calculation group on the Calculation ribbon tab.
The following methods can be used to stop algorithm calculation:
Add a global variable:
Go to the object navigator and select the Tools > Parameters main menu item.
In the Parameters dialog box that opens go to the Global Variables tab.
Click the Add button.
The Create Global Variable dialog box opens. Create a variable with the following parameters in this dialog box:
Name: ALG_MULTI_THREADS.
Identifier: ALG_MULTI_THREADS.
Type: integer.
Value: 0.
Click the OK button.
Add a parameter to registry:
Run registry editor. To do this, go to: C:\Windows and run the regedit.exe file.
Go to the registry editor key: HKEY_CURRENT_USER\SOFTWARE\Foresight\Foresight Analytics Platform\9.0\Debug.
Create the AlgorithmMultuThreadEnable parameter of the REG_DWORD type. To do this:
Select the Create > DWORD Key (32 bit) item in the key's context menu.
The parameter is created, its name is switched into the edit mode. Enter value of AlgorithmMultuThreadEnable and press the ENTER key.
NOTE. If the AlgorithmMultuThreadEnable parameters already exists, skip this step.
Set the AlgorithmMultuThreadEnable parameter to 0. To do this:
Double-click the AlgorithmMultuThreadEnable parameter or select the Edit item in the parameter's context menu.
In the Edit DWORD Parameter (32 bit) dialog box that opens in the Value box enter 0.
Click the OK button.
As a result, the Stop button will be unavailable on algorithm calculation.
To enable stopping calculation algorithm, change value of the AlgorithmMultuThreadEnable parameter or the ALG_MULTI_THREADS global variable to 1.
NOTE. Take into account features of the AlgorithmMultuThreadEnable parameter and the ALG_MULTI_THREADS global variable:
• If the parameter is set to 0 in the registry, it is denied to stop algorithm calculation.
• If the parameter is set to 1 in the registry or the parameter is absent, global variable value determines whether to allow or deny stopping algorithm calculation.
• If registry parameter and global variable are absent, it is allowed to stop algorithm calculation.
See also: