From 25780a2b4f316d03d8cb2281d7b43f82ca4b90fb Mon Sep 17 00:00:00 2001 From: Dhanya Maliakal Date: Fri, 4 Nov 2016 13:45:24 +0100 Subject: [PATCH] fixed jungfrau gui --- .../multiSlsDetector/multiSlsDetector.cpp | 37 +++++-------------- 1 file changed, 9 insertions(+), 28 deletions(-) diff --git a/slsDetectorSoftware/multiSlsDetector/multiSlsDetector.cpp b/slsDetectorSoftware/multiSlsDetector/multiSlsDetector.cpp index 4a5e87ce3..3f6c05248 100644 --- a/slsDetectorSoftware/multiSlsDetector/multiSlsDetector.cpp +++ b/slsDetectorSoftware/multiSlsDetector/multiSlsDetector.cpp @@ -2231,7 +2231,6 @@ slsDetectorDefs::ROI* multiSlsDetector::getROI(int &n){ double* multiSlsDetector::decodeData(int *datain, double *fdata) { double *dataout; - cprintf(GREEN,"numchanensl:%d\n",thisMultiDetector->numberOfChannels); if (fdata) dataout=fdata; @@ -5167,7 +5166,6 @@ void multiSlsDetector::startReceivingDataThread(){ //scan header------------------------------------------------------------------- zmq_msg_init (&message); - cprintf(BLUE,"waiting to listen to header\n"); len = zmq_msg_recv(&message, zmqsocket, 0); if (len == -1) { cprintf(BG_RED,"Could not read header for socket %d\n",ithread); @@ -5179,7 +5177,7 @@ void multiSlsDetector::startReceivingDataThread(){ // error if you print it // cout << ithread << " header len:"<fileName); - dataReady(thisData, currentFrameIndex, currentSubFrameIndex, pCallbackArg);//should be fnum and subfnum from json header - delete thisData; + dataReady(thisData, currentFrameIndex, currentSubFrameIndex, pCallbackArg); fdata = NULL; cout<<"Send frame #"<< currentFrameIndex << " to gui"<