soapcpp2: check fclose status and wrap fopen for better error messages
Development toolkit for Web Services and XML data bindings for C & C++
Brought to you by:
engelen
Noticed that the status code of fclose wasn't checked, so for example running out of disk space wouldn't be detected till the output was used. Wrapped it up in a efclose() function and call execerror on failure.
I have also wrapped up the fopen(something, "w") calls, but for the reason that I want to increase the buffer size on windows. Side-effect here is better error messages should open fail and reduced runtime on windows when outputting MBs (90-100MB in the VirtualBox case).
Cheers,
knut.
It's a good idea to add a check for
fclose()
so I'll make some adjustments to generate a fatal error when writing and closing fails.The soapcpp2 tool is updated to version 2.8.99.