Ticket #151 (Open)Tue Sep 25 06:59:09 UTC 2007
CLibrary 5.54 IO runtime error
Reported by: | André Timmermans (100) | Severity: | Normal |
Part: | RISC OS: Module | Release: | |
Milestone: | RISC OS ROM build complete | Status | Open |
Details by André Timmermans (100):
The application I am developing logs the errors it encounters into a file for later analysis but ended with an error ‘unrecoverable runtime error, not enough memory for IO buffer or the like’ (text quoted from memory, may differ slightly) while trying to log an ‘out of memory’ error.
I solved it by using “setbuf(file, NULL);” to disables IO buffering, but the real point of this ticket is this one: it would be far better for the CLibrary file handling functions to return an error code so that the application can recover from the situation instead of killing the application (note ROL’s CLibrary is worse in that it silently kills the application).
Changelog:
Modified by Steve Revill (20) Fri, October 24 2008 - 12:31:43 GMT
- Milestone changed from Unspecified to RISC OS ROM build complete