ratal / mdfreader

Read Measurement Data Format (MDF) versions 3.x and 4.x file formats in python
Other
169 stars 73 forks source link

readmdf read network file #200

Closed caijiya closed 2 years ago

caijiya commented 2 years ago

Can I use mdfreader to read network files? At present, I write network files to temporary files first and then read them. However, during the operation of my web service (flask), file flow do not shutdown automatic, resulting in the report that the files are occupied when I finally delete the temporary files. How can I solve it

ratal commented 2 years ago

To my understanding, this kind of behavior could come from your Operating System which is protecting to read from a thread while writing at the same time the same file from another thread, it would lead to an undefined behavior. Your hard drive can hardly do it anyway. Ii seems you need to introduce sync mechanisms. Your "network" file follows ASAM standard ? if yes, mdfreader should be able to read it.

caijiya commented 2 years ago

i am resoved it, because i find mdfreander can close stream rightly,thank you