]> git.donarmstrong.com Git - mothur.git/blobdiff - aligncommand.cpp
added checks to make sure windows processes completed their tasks.
[mothur.git] / aligncommand.cpp
index a871244f4538881c8d285c2a1202597be319498d..fc98c10924138a3aa168dabbc609f64bfb89f3e4 100644 (file)
@@ -965,6 +965,9 @@ int AlignCommand::createProcesses(string alignFileName, string reportFileName, s
                
                //Close all thread handles and free memory allocations.
                for(int i=0; i < pDataArray.size(); i++){
+            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; 
+            }
                        num += pDataArray[i]->count;
                        CloseHandle(hThreadArray[i]);
                        delete pDataArray[i];