fixed crashing of moench03RawDataProcess when nframes>0 (#810)

This commit is contained in:
anberga
2023-09-27 09:22:40 +02:00
committed by GitHub
parent 45414149fe
commit e7cd90db78
2 changed files with 9 additions and 5 deletions

View File

@ -356,6 +356,8 @@ int main(int argc, char *argv[]) {
sprintf(ffname, "%s/%s_f%05d.tiff", outdir, fformat,
ifile);
sprintf(imgfname, (const char*)ffname, irun);
while (mt->isBusy())
;
mt->writeImage(imgfname, thr1);
mt->clearImage();
ifile++;
@ -381,6 +383,8 @@ int main(int argc, char *argv[]) {
sprintf(imgfname, (const char*)ffname, irun);
}
cout << "Writing tiff to " << imgfname << " " << thr1 << endl;
while (mt->isBusy())
;
mt->writeImage(imgfname, thr1);
mt->clearImage();
if (of) {