Replies: 0 comments 2 replies
-
The The merits of this approach are debatable, but the bottom line today is that if you want to handle file write errors, you need to implement your own The purpose of the |
Beta Was this translation helpful? Give feedback.
-
I have an C++ MCAP writer who writes mcap message. After a message is written, it needs to check if the write is successful. If not, we need to call
terminate
, can we write more messages after the terminate call?For example, can we do think like
Does that work? Or do we need to call
writer.close()
afterwriter.terminate()
?Can we continue writing message to the same file by reopen the file after it terminates? Or do we need to open a new file?
I know according to this example https://github.com/foxglove/mcap/blob/main/cpp/examples/protobuf/writer.cpp#L155
When the write failed,
It closes every thing and terminate the program, which is not what we want.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions