简体   繁体   中英

“Assertion failed!” error when exiting program (HDF5 1.8.6)

I'm using HDF5 1.8.6 on a Windows7 32-bit system from a data acquisition C#/.Net application (using the HDFDotNet wrappers).

I've noticed a runtime error(AssertionFailed) popup when I exit my application after the following behavior:

1.) I open an HDF5 file on a USB drive (or network shared drive) 2.) I start sampling data and storing it to the HDF5 file. 3.) I (rudely) remove the USB drive (or disconnect the network shared drive) 4.) Write exceptions are handled (seemingly appropriately... no crashes) 5.) I close the application.

At this point I get the error, which mentions File:......\src\H5F.c (Line 1737) and "Expression: f->file_id>0"

I'm assuming the HDF5 library is trying to clean something up and is confused that it can't find a file it was using... but it seems it should still be able to recover when it can't. Have I missed something?

Thanks!

Josh Anderson

I bet the HDF5 has a close/exit/shutdown function that you should be calling before you exit.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM