--- DarthVader/S4Level2/src/S4_LEVEL2.cpp 2006/05/19 13:15:26 1.1 +++ DarthVader/S4Level2/src/S4_LEVEL2.cpp 2011/11/29 13:53:11 1.3 @@ -18,6 +18,7 @@ // // ROOT headers // +#include #include #include // @@ -60,7 +61,7 @@ int nul = 0; int error = 0; Bool_t beverbose = false; - ULong64_t run = 0; + UInt_t run = 0; TString filename=""; TString processFolder; TString outDir = "./"; @@ -90,8 +91,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 ){ @@ -202,6 +202,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.