Bus error when writing in a typed file

Baudouin Le Charlier <[email protected]>
Newsgroups gmane.comp.compilers.gpc
Message-ID <[email protected]>
 Hi !

 I am using a Mac OS X 10.6.8. I have downloaded GNU Pascal for Mac Os fromhttp://www.microbizz.nl/gpc.html. I have been using GNU Pascal for writing very simple programs for an introductory programming course and it worked fine until I wrote the following program for which I got a "bus error" when writing a first record in the file (at line 128). Notice that the program executes without errors when compiled with free pascal compiler. 

I should be happy if anyone can help me to solve this "problem".

Baudouin Le Charlier

_______________________________________________
Gpc mailing list
[email protected]
https://www.g-n-u.de/mailman/listinfo/gpc
fileOfRecords.pas (application/octet-stream, 4.5 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.