From f751e060b973ccbc80bca71faa623a433d0e74e9 Mon Sep 17 00:00:00 2001 From: Dhanya Maliakal Date: Fri, 7 Oct 2016 15:13:20 +0200 Subject: [PATCH] fixed bug that it does not display image 2 --- .../multiSlsDetector/multiSlsDetector.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/slsDetectorSoftware/multiSlsDetector/multiSlsDetector.cpp b/slsDetectorSoftware/multiSlsDetector/multiSlsDetector.cpp index 813d2ab05..9b6dd92ea 100644 --- a/slsDetectorSoftware/multiSlsDetector/multiSlsDetector.cpp +++ b/slsDetectorSoftware/multiSlsDetector/multiSlsDetector.cpp @@ -5083,9 +5083,9 @@ void multiSlsDetector::startReceivingDataThread(){ jungfrau = true; int singleDatabytes = detectors[ithread/numReadoutPerDetector]->getDataBytes(); int nel=(singleDatabytes/numReadoutPerDetector)/sizeof(int); - singleframe[ithread]=new int[nel]; + int* image = new int[nel]; int len,idet = 0; - + singleframe[ithread]=NULL; threadStarted = true; //let calling function know thread started and obtained current @@ -5111,7 +5111,7 @@ void multiSlsDetector::startReceivingDataThread(){ // error if you print it // cout << ithread << " header len:"<