diff --git a/concore.hpp b/concore.hpp index 65109af..9493128 100644 --- a/concore.hpp +++ b/concore.hpp @@ -353,17 +353,14 @@ class Concore{ ostringstream ss; ss << infile.rdbuf(); // reading data ins = ss.str(); - retrycount++; infile.close(); } else{ - retrycount++; throw 505; } } - //observed retry count in C++ from various tests is approx 80. catch(...){ - cout<<"Read error"; + cerr << "Error reading " << inpath << port << "/" << name << " (retry " << retry << ")" << endl; } retry++; } @@ -416,16 +413,13 @@ class Concore{ if(shmId_get != -1) { std::string message(sharedData_get, strnlen(sharedData_get, 256)); ins = message; - retrycount++; } else{ - retrycount++; throw 505; } } - //observed retry count in C++ from various tests is approx 80. catch(...){ - std::cout << "Read error" << std::endl; + cerr << "Error reading from shared memory port " << port << " name " << name << " (retry " << retry << ")" << endl; } retry++; } @@ -494,6 +488,7 @@ class Concore{ outfile<