//free memory
if (gGroupmap != NULL) { delete gGroupmap; gGroupmap = NULL; }
+
if (gListVector != NULL) { delete gListVector; gListVector = NULL;}
+
if (gSparseMatrix != NULL) { delete gSparseMatrix; gSparseMatrix = NULL; }
+
if (ginput != NULL) { delete ginput; ginput = NULL;}
+
if (gorder != NULL) { delete gorder; gorder = NULL; }
+
if (glist != NULL) { delete glist; glist = NULL;}
+
if (gSharedList != NULL) { delete gSharedList; gSharedList = NULL; }
+
if (sabund != NULL) { delete sabund; sabund = NULL;}
+
if (rabund != NULL) { delete rabund; rabund = NULL; }
+
if (gMatrix != NULL) { delete gMatrix; gMatrix = NULL;}
+
if (gTreemap != NULL) { delete gTreemap; gTreemap = NULL; }
+
if (gSequenceDB != NULL) { delete gSequenceDB; gSequenceDB = NULL;}
+
gTree.clear();
Treenames.clear();
- labels.clear(); lines.clear(); Groups.clear();
+ labels.clear(); Groups.clear();
allLines = 1;
runParse = true;
}
catch(exception& e) {
- cout << "Standard Error: " << e.what() << " has occurred in the GlobalData class Function newRead. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- exit(1);
- }
- catch(...) {
- cout << "An unknown error has occurred in the GlobalData class function newRead. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
+ errorOut(e, "GlobalData", "newRead");
exit(1);
}
}
if (gSequenceDB != NULL) { delete gSequenceDB; gSequenceDB = NULL;}
}
catch(exception& e) {
- cout << "Standard Error: " << e.what() << " has occurred in the GlobalData class Function ~GlobalData. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- exit(1);
- }
- catch(...) {
- cout << "An unknown error has occurred in the GlobalData class function ~GlobalData. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
+ errorOut(e, "GlobalData", "~GlobalData");
exit(1);
}
}