gui callback exception caught

This commit is contained in:
maliakal_d 2020-11-17 14:01:53 +01:00
parent 918f3f3fde
commit 146d605d19
2 changed files with 9 additions and 6 deletions

View File

@ -1,8 +1,8 @@
#include "qDrawPlot.h"
#include "SlsQt1DPlot.h"
#include "SlsQt2DPlot.h"
#include "sls/detectorData.h"
#include "qCloneWidget.h"
#include "sls/detectorData.h"
#include "sls/ToString.h"
#include "sls/detectorData.h"

View File

@ -660,11 +660,14 @@ void DetectorImpl::readFrameFromReceiver() {
nDetActualPixelsX, nDetActualPixelsY,
callbackImage, imagesize, dynamicRange,
currentFileIndex, completeImage);
dataReady(
thisData, currentFrameIndex,
((dynamicRange == 32 && eiger) ? currentSubFrameIndex : -1),
pCallbackArg);
try {
dataReady(
thisData, currentFrameIndex,
((dynamicRange == 32 && eiger) ? currentSubFrameIndex : -1),
pCallbackArg);
} catch (const std::exception &e) {
LOG(logERROR) << "Exception caught from callback: " << e.what();
}
delete thisData;
}
}