- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Steve:
Been away from Fortran a while and just encountered a new problem in a program migrated from UNISYS to VAX to PC executable. The code has been on the PC for several years and worked fine under DVF 5.0. The file in question is opened as UNFORMATTED SEQUENTIAL.
When I rebuilt it under CVF 6.6.0 to correct a file open dialog problem, I encountered a backspace error in the code. The code writes a "file id" record, some file data records, and an "end of file" record. It then writes a second "file header" that indicates a void file and backspaces one record to prepare for appending the next file.
The new CVF 6.6.0 exe writes the "eof" for file 1 followed by the special eof for file 2 indicating the file is void correctly (checked by dumping the file in HEX and looking at the record structure). However, when it backspaces one record, it gets an error indicating position beyond start of file.
I noted that the archives for CVF 6.6 mentioned an update 6.6A that corrected that problem and wondered if it is still available. I have implemented a workaround that simply rewinds and searches for the void file, but don't know if it will work in all cases and would prefer to apply the latest available CVF fixes to bring my product up to date.
Thanks
John
Been away from Fortran a while and just encountered a new problem in a program migrated from UNISYS to VAX to PC executable. The code has been on the PC for several years and worked fine under DVF 5.0. The file in question is opened as UNFORMATTED SEQUENTIAL.
When I rebuilt it under CVF 6.6.0 to correct a file open dialog problem, I encountered a backspace error in the code. The code writes a "file id" record, some file data records, and an "end of file" record. It then writes a second "file header" that indicates a void file and backspaces one record to prepare for appending the next file.
The new CVF 6.6.0 exe writes the "eof" for file 1 followed by the special eof for file 2 indicating the file is void correctly (checked by dumping the file in HEX and looking at the record structure). However, when it backspaces one record, it gets an error indicating position beyond start of file.
I noted that the archives for CVF 6.6 mentioned an update 6.6A that corrected that problem and wondered if it is still available. I have implemented a workaround that simply rewinds and searches for the void file, but don't know if it will work in all cases and would prefer to apply the latest available CVF fixes to bring my product up to date.
Thanks
John
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can get the 6.6B update at http://h18009.www1.hp.com/fortran/visual/updates.html. By now it may also be available on the Intel site somewhere, but I don't know where.
Mike
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mike
Thanks for the pointer - got the download OK and will test soon to see if I can get away without the workaround for BACKSPACE. Tough maintaining old code, but it keeps a "Geezer" like me employed!
John
Thanks for the pointer - got the download OK and will test soon to see if I can get away without the workaround for BACKSPACE. Tough maintaining old code, but it keeps a "Geezer" like me employed!
John

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page