| |
wbochar
Registered: May 2002 Posts: 29 |
REL/Relative Files -- Random Lockups
I have Old BBS User and Mail lists stored in REL format.
I've got a BASIC program reading through the entries (I have the data structure).
The first 7 records come through fine, then the machine crashes. If I skip that record and start after it -- 10 more records go through but then the program crashes. Crash means the machine locks up no RUN/STOP / Restore only power cycle can get out of it.
It doesn't matter if the computer is hardware or emulated, same results.
-- Code --
1009 rem open user file for reading
1010 open 15,8,15
1020 open 1,8,2,"users,l"+chr$(59)
1030 for r=1to9:rc$="":print "r:";r;
1035 hb=int(r/256)
1040 lb=r-hb*256
1050 print#15,"p"+chr$(2+96)+chr$(lb)+ch
r$(hb)+chr$(1)
1052 input#15,e,e$,e1,e2:print e;e$;
1054 f=0
1056 f=f+1:input#1,f$
1058 print mid$(f$,2,25)
1060 if st=0 goto 1054
1070 print#15,"p"+chr$(2+96)+chr$(lb)+ch
r$(hb)+chr$(1)
1090 next r
1099 close1:close15
1996 print "done."
1998 get key$: if key$="" then 1998
wbochar |
|
| |
Colt45RPM
Registered: Feb 2019 Posts: 47 |
Can you read them without issue in DirMaster? Just to see if you notice any file issues... |
| |
wbochar
Registered: May 2002 Posts: 29 |
I can see the contents in DirMaster, everything looks ok.
I look at the structure and the records that have issues and they are all different and share similarities with other records that are reading.
I am aware that there is a side sector block that helps with locating records directly. Maybe something is blown that way.. |
| |
Colt45RPM
Registered: Feb 2019 Posts: 47 |
Does it look ok in this as well?
Relative File Editor V1.2a
Maybe a better test on the real hardware? |
| |
wbochar
Registered: May 2002 Posts: 29 |
The REL editor just crashes when it tries to load the file... on a real c64c with either a 1541 or 1541 ][. |
| |
Colt45RPM
Registered: Feb 2019 Posts: 47 |
Maybe try a REL to SEQ converter and see if it can turn it into a more easily parsed/modified file and then run a SEQ to REL converter to see if it looks better then?
I used to do this with user files on BBS, etc. |
| |
wbochar
Registered: May 2002 Posts: 29 |
I ended up making the BASIC prog, load segments at a time.
The problem records, if loaded solo (open and close after) worked ok.
So, Then:
1-6 *7* 8-18 *19* *20* 21-40 *41* 42-82
ended up working fine.
When I looked at the track/sector data I have a feeling the bad records are split funny in the side channel info. A lot the relative docs I have say that some bugs occur with the split.
Thanks for the help, I am ready to tackle the Messages :) |
| |
Colt45RPM
Registered: Feb 2019 Posts: 47 |
No prob at all. Anytime. Glad to hear you were able to get them taken care of. |