--- DarthVader/TriggerLevel2/src/TriggerLevel2.cpp 2006/06/17 12:14:35 1.1.1.1 +++ DarthVader/TriggerLevel2/src/TriggerLevel2.cpp 2011/11/29 15:23:44 1.3 @@ -7,6 +7,7 @@ // // ROOT headers // +#include #include #include // @@ -48,7 +49,7 @@ int nul = 0; Int_t error = 0; Bool_t beverbose = false; - ULong64_t run = 0; + UInt_t run = 0; TString filename=""; TString processFolder; TString outdir = "./"; @@ -78,8 +79,7 @@ exit(-3); }; givenid = true; - char *pEnd; - run = strtoull(inps[i+1],&pEnd,0); + run = (UInt_t)atoll(inps[i+1]); }; if ( !strcmp(inps[i],"-outDir") ) { if ( numinp-1 < i+1 ){ @@ -190,6 +190,8 @@ // printf("\nClose the connection to the database... \n"); dbc->Close(); + delete dbc; + dbc = 0; printf("...connection terminated!\n\n"); // // Close redirection if the case.