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: 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
2019-09-24 21:58
Colt45RPM

Registered: Feb 2019
Posts: 47
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: 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..
2019-09-25 00:32
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?
2019-09-25 04:05
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 ][.
2019-09-25 06:17
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.
2019-09-25 17:22
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 :)
2019-09-25 17:39
Colt45RPM

Registered: Feb 2019
Posts: 47
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
Linus/MSL
REBEL 1/HF
Paul Bearer
Mike
Didi/Laxity
Krill/Plush
Guests online: 81
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 No Listen  (9.6)
3 Party Elk 2  (9.6)
4 Cubic Dream  (9.6)
5 Copper Booze  (9.6)
6 Rainbow Connection  (9.5)
7 Dawnfall V1.1  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Triad  (9.3)
5 Censor Design  (9.3)
Top Webmasters
1 Slaygon  (9.6)
2 Perff  (9.6)
3 Sabbi  (9.5)
4 Morpheus  (9.4)
5 CreaMD  (9.1)

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