forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

reading unformatted scratch file crashes

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
Anonymous
Guest





PostPosted: Tue Oct 11, 2005 12:50 pm    Post subject: reading unformatted scratch file crashes Reply with quote

Dr. Kruck provided an example program which causes FTN95 v4.80 to crash (Error 110: "unformatted record is corrupt"):

program crash

integer i, ns, lu3
character*16 cfield(32800)

cfield = 'abcdefghijklmnop'
ns = 32767 ! change this to 32766 or lower, and no crash occurs when reading the file
lu3 = 33

open (lu3, form= 'unformatted', status= 'scratch')

rewind (lu3)

write (lu3) ns, (cfield(i), i=1, ns)

rewind (lu3)

read (lu3) ns, (cfield(i), i=1, ns) ! if ns = 32767 -> Error 110: "unformatted record is corrupt"

close (lu3)

end
Back to top
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Tue Oct 11, 2005 1:38 pm    Post subject: reading unformatted scratch file crashes Reply with quote

Joerg

Thank you for this.

A temporary work-around is to output an extra item or to run in .NET mode (/CLR).

Regards

Paul
Back to top
View user's profile Send private message AIM Address
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Wed Oct 19, 2005 7:34 am    Post subject: reading unformatted scratch file crashes Reply with quote

Joerg

This bug has now been fixed and the fix will be available in the next release.

With best wishes

Paul
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group