} /* MakeSureDepthFieldIsIncluded */

        private void   CancelTuningThread()
        {
            tuningThreadCancelReq = true;
            if (config != null)
            {
                config.CancelLoad();
            }

            int loopCount = 0;

            while (tuningThreadRunning && (loopCount < 300) && tuningThread.IsAlive)
            {
                Thread.Sleep(100);
                RunLogMsgQueueFlush();
                loopCount++;
            }
        }
예제 #2
0
        } /* CrossValidate */

        private void  CancelProcessing()
        {
            CancelButon.Enabled = false;

            cancelProcessing = true;
            BlockStart();

            if (trainingModel != null)
            {
                trainingModel.CancelLoad();
            }

            if (groundTruth != null)
            {
                groundTruth.CancelLoad();
            }

            if (curSelModel != null)
            {
                curSelModel.CancelLoad();
            }

            BlockEnd();

            int sleepCount = 0;

            while (loadingThreadRunning)
            {
                if (sleepCount > 50)
                {
                    break;
                }
                Thread.Sleep(200);
                sleepCount++;
            }

            if (loadingThread != null)
            {
                loadingThread.Abort();
                loadingThread = null;
            }

            EnableComponentsForParameterEntry();
        } /* CancelProcessing*/