Problem with OSBREAD (AREV Specific)
At 09 AUG 1998 05:46:20AM Jack Davis wrote:
My program using OSBREAD always fails at the OSBREAD line after properly reading 218,538 bytes. The failure occurs when the length is set to only 2. I have looked at the raw data in decimal and HEX and it appears to be OK. The error message is: 'filename broke because a run time error was encountered'. Any ideas would be greatly appreciated.
At 09 AUG 1998 05:54AM Aunty Jack wrote:
Congratulations. You have won the famous 21930 prize. Any OSREAD or OSWRITE at an offset of (x * 65536) + 21930 bytes, breaks you to the debugger. 218538 bytes is one such offset.
What can you do? Try OSOPEN the file each time on the line immediately before you read or write.
At 10 AUG 1998 06:10PM Jack Davis wrote:
Aunty Jack,
Thanks very much. I have been using OSBREAD and OSBWRITE for many years but have never had this problem before. Putting an OSOPEN routine just before the OSBREAD as you suggested fixed the problem.
Many thanks for your help on this.
-Jack Davis