solved segmentation fault on may frames, printing progress during acquisition

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@144 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
bergamaschi
2012-03-16 12:25:45 +00:00
parent 97a0d06618
commit d8d08d5a9b
4 changed files with 60 additions and 67 deletions

View File

@ -1077,8 +1077,8 @@ int* multiSlsDetector::readAll(){
i++;
#ifdef VERBOSE
std::cout<< i << std::endl;
#else
std::cout << "-" << flush;
//#else
//std::cout << "-" << flush;
#endif
dataQueue.push(retval);
}
@ -1117,8 +1117,8 @@ int* multiSlsDetector::startAndReadAll(){
i++;
#ifdef VERBOSE
std::cout<< i << std::endl;
#else
std::cout << "-" << flush;
//#else
//std::cout << "-" << flush;
#endif
dataQueue.push(retval);
}
@ -2887,8 +2887,10 @@ int multiSlsDetector::writeConfigurationFile(string const fname){
ofstream outfile;
// int ret;
#ifdef VERBOSE
int ret;
#endif
outfile.open(fname.c_str(),ios_base::out);
if (outfile.is_open()) {