debugging

This commit is contained in:
Dhanya Maliakal 2016-11-08 12:02:21 +01:00
parent a42854d9a7
commit 7e9760559c

View File

@ -878,7 +878,10 @@ int UDPStandardImplementation::setDetectorType(const detectorType d){
if(latestData[i]) {delete[] latestData[i]; latestData[i] = 0;} if(latestData[i]) {delete[] latestData[i]; latestData[i] = 0;}
} }
for(int i=0; i<numberofWriterThreads; i++){ for(int i=0; i<numberofWriterThreads; i++){
latestData[i] = new char[bufferSize]; if(myDetectorType == JUNGFRAU)
latestData[i] = new char[bufferSize+fifoBufferHeaderSize-HEADER_SIZE_NUM_TOT_PACKETS];
else
latestData[i] = new char[bufferSize];
} }