Delphi IDE (89)
Windows with Delphi (280)
Visual Basic (1)
About this site
Links to us
New related comments
Number of comments in the last 48 hours
The meaning of Runtime Error 217
3 new comments
Problem with typed files
This article has not been rated yet. After reading, feel free to leave comments and rate it.
I am converting from Delphi 4 to Delphi 5. All my typed files are having errors during read. It is as if the defined record structure doesn't match the records in the files. When I rewrite the file and then write a new record to it, I don't have a problem. Was the structure of typed files changed in Delphi 5?
Records are defaulted to aligned in Delphi 5. Add the 'packed' keyword to your type declarations.