]> git.donarmstrong.com Git - mothur.git/blobdiff - classifyseqscommand.cpp
added checks to make sure windows processes completed their tasks.
[mothur.git] / classifyseqscommand.cpp
index 114036b2e89ea47a6a3aed1c9e08b514835ccd24..147b3830dded524050b2b8cf96cfbbabde09e3c0 100644 (file)
@@ -1044,6 +1044,9 @@ int ClassifySeqsCommand::createProcesses(string taxFileName, string tempTaxFile,
                //Close all thread handles and free memory allocations.
                for(int i=0; i < pDataArray.size(); i++){
                        num += pDataArray[i]->count;
+            if (pDataArray[i]->count != pDataArray[i]->end) {
+                m->mothurOut("[ERROR]: process " + toString(i) + " only processed " + toString(pDataArray[i]->count) + " of " + toString(pDataArray[i]->end) + " sequences assigned to it, quitting. \n"); m->control_pressed = true; 
+            }
                        CloseHandle(hThreadArray[i]);
                        delete pDataArray[i];
                }