private void RunBlock(object pThreadParams) { try { ThreadParams blockPars = (ThreadParams)pThreadParams; RunLogicBlock(blockPars); } catch (Exception ex) { CalculationExceptionList.Add(new EntropyCalculatorException(C_CalcError, ex)); } }
private void RunMain() { try { for (int i = 0; i < threadObjects.Length; i++) { threadObjects[i].ThreadJoin(); } SumThreadResult(); threadObjects = null; } catch (Exception ex) { CalculationExceptionList.Add(new EntropyCalculatorException(C_CalcError, ex)); } }