Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > REL/Relative Files -- Random Lockups
2019-09-24 20:32
wbochar

Registered: May 2002
Posts: 26
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
2019-09-24 21:58
Colt45RPM

Registered: Feb 2019
Posts: 37
Can you read them without issue in DirMaster? Just to see if you notice any file issues...
2019-09-24 23:43
wbochar

Registered: May 2002
Posts: 26
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..
2019-09-25 00:32
Colt45RPM

Registered: Feb 2019
Posts: 37
Does it look ok in this as well?
Relative File Editor V1.2a
Maybe a better test on the real hardware?
2019-09-25 04:05
wbochar

Registered: May 2002
Posts: 26
The REL editor just crashes when it tries to load the file... on a real c64c with either a 1541 or 1541 ][.
2019-09-25 06:17
Colt45RPM

Registered: Feb 2019
Posts: 37
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.
2019-09-25 17:22
wbochar

Registered: May 2002
Posts: 26
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 :)
2019-09-25 17:39
Colt45RPM

Registered: Feb 2019
Posts: 37
No prob at all. Anytime. Glad to hear you were able to get them taken care of.
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Acidchild/Padua
Sentinel/Excess/TREX
Twilight/Excess/Arcade
Martin Piper
serato/Finnish Gold
Krill/Plush
Apollyon/ALD
SplAtterpunk
Guests online: 111
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 Bromance  (9.6)
10 Memento Mori  (9.6)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 Rainbow Connection  (9.5)
6 TRSAC, Gabber & Pebe..  (9.5)
7 Onscreen 5k  (9.5)
8 Wafer Demo  (9.5)
9 Dawnfall V1.1  (9.5)
10 Quadrants  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Nostalgia  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Musicians
1 Rob Hubbard  (9.7)
2 Jeroen Tel  (9.7)
3 Stinsen  (9.6)
4 Mutetus  (9.6)
5 Linus  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.065 sec.