mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-24 15:20:02 +02:00
gui callback exception caught
This commit is contained in:
parent
918f3f3fde
commit
146d605d19
@ -1,8 +1,8 @@
|
|||||||
#include "qDrawPlot.h"
|
#include "qDrawPlot.h"
|
||||||
#include "SlsQt1DPlot.h"
|
#include "SlsQt1DPlot.h"
|
||||||
#include "SlsQt2DPlot.h"
|
#include "SlsQt2DPlot.h"
|
||||||
#include "sls/detectorData.h"
|
|
||||||
#include "qCloneWidget.h"
|
#include "qCloneWidget.h"
|
||||||
|
#include "sls/detectorData.h"
|
||||||
|
|
||||||
#include "sls/ToString.h"
|
#include "sls/ToString.h"
|
||||||
#include "sls/detectorData.h"
|
#include "sls/detectorData.h"
|
||||||
|
@ -660,11 +660,14 @@ void DetectorImpl::readFrameFromReceiver() {
|
|||||||
nDetActualPixelsX, nDetActualPixelsY,
|
nDetActualPixelsX, nDetActualPixelsY,
|
||||||
callbackImage, imagesize, dynamicRange,
|
callbackImage, imagesize, dynamicRange,
|
||||||
currentFileIndex, completeImage);
|
currentFileIndex, completeImage);
|
||||||
|
try {
|
||||||
dataReady(
|
dataReady(
|
||||||
thisData, currentFrameIndex,
|
thisData, currentFrameIndex,
|
||||||
((dynamicRange == 32 && eiger) ? currentSubFrameIndex : -1),
|
((dynamicRange == 32 && eiger) ? currentSubFrameIndex : -1),
|
||||||
pCallbackArg);
|
pCallbackArg);
|
||||||
|
} catch (const std::exception &e) {
|
||||||
|
LOG(logERROR) << "Exception caught from callback: " << e.what();
|
||||||
|
}
|
||||||
delete thisData;
|
delete thisData;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user