Hi Mark,
sorry for the long delay. It took me a while to setup a new system to do the test.
It turned out, that I did not close the file in the closeFile function. It was in there but commented out. Together with some
other code. Probably i was distracted doing some debugging because the function caused a crash when reopening a new file.
Now everything works as expected. Even the outosave function.
Thanks for the tips.
Regards
Jörn
Am Dienstag, 6. Januar 2026, 15:15:07 Mitteleuropäische Normalzeit schrieben Sie:
> Hi Jörn,
>
> What you describe should work. I have some questions:
>
>
> *
> Does your specialized file format support writing more than one image to a file? Have you set the supportsMultipleArrays class variable appropriately?
> *
> Have you tried using Mode=Single and see if the problem persists?
> *
> Have you tried adding a debugging printf to the closeFile()method of your derived class to see if it is being called?
>
> Mark
>
>
> ________________________________
> From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Jörn Dreyer via Tech-talk <tech-talk at aps.anl.gov>
> Sent: Tuesday, January 6, 2026 1:34 AM
> To: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov>
> Subject: NDPluginFile question
>
> Hello,
>
> I have implemented a new NDPluginFile class for a specialized file format the we need.
> Everything works fine besides one strange thing that the last file in a series of captured streams is not closed.
> I want to take 100 images, each in a separate file. Therefor I set the # Captures to 1 and set the Mode to Stream.
> If I now click Capture, a new file is created for the next image, the Next file # get incremented and the capture finishes.
> If I now try to open the file its not yet possible to read it because its not closed yet.
> Reading thru the code of NDPluginFile.cpp I believe that the file should be closed by calling closeFileBase which calls closeFile of my derived class.
> Is that the expected behavior?
>
> Regards
>
> Jörn
>
BEGIN:VCARD
VERSION:3.0
EMAIL;TYPE:j.dreyer at hzdr.de
FN:Jörn Dreyer
N:Dreyer;Jörn;;;
ORG:Helmholtz - Zentrum Dresden- Rossendorf;FWKX
TEL;TYPE=WORK:+0493502603263
TITLE:Dr.
UID:c191707b-eb41-4699-bb8d-a5ef050ab4aa
X-KADDRESSBOOK-MailPreferedFormatting:TEXT
END:VCARD
- References:
- NDPluginFile question Jörn Dreyer via Tech-talk
- Re: NDPluginFile question Mark Rivers via Tech-talk
- Navigate by Date:
- Prev:
Re: problems with SNL - sevr=minor ca_array_get_callback [...]: Virtual circuit disconnect Dariush Hampai via Tech-talk
- Next:
Archiver Appliance stuck on initial sampling Dennis Hilhorst via Tech-talk
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
<2026>
- Navigate by Thread:
- Prev:
Re: NDPluginFile question Mark Rivers via Tech-talk
- Next:
The problem of converting floating-point numbers to 4-byte format (in CDAB order) under StreamDevice 高振华 via Tech-talk
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
<2026>
|