Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in 
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: 6
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: 6
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: 6
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: 6
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
Sparta/OMG
Guests online: 67
Top Demos
1 Uncensored  (9.7)
2 Unboxed  (9.7)
3 Edge of Disgrace  (9.7)
4 Coma Light 13  (9.7)
5 Comaland 100%  (9.6)
6 Lunatico  (9.6)
7 The Shores of Reflec..  (9.5)
8 Rivalry  (9.5)
9 C=Bit 18  (9.5)
10 X Marks the Spot  (9.5)
Top onefile Demos
1 Instinct  (9.6)
2 Sprite Font Compo Re..  (9.5)
3 Smile to the Sky  (9.5)
4 Dawnfall V1.1  (9.5)
5 Space Demo  (9.5)
6 The Tuneful Eight [u..  (9.5)
7 The Tuneful Eight (U..  (9.5)
8 Crystal Gazer  (9.5)
9 Je t'aime mon Monstre  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 PriorArt  (9.6)
2 Fossil  (9.5)
3 Oxyron  (9.5)
4 Booze Design  (9.4)
5 Arsenic  (9.4)
Top Graphicians
1 Mirage  (9.7)
2 Archmage  (9.7)
3 Electric  (9.6)
4 Veto  (9.6)
5 Carrion  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2019
Page generated in: 0.058 sec.