Xref: utzoo comp.sys.mac.hypercard:2539 comp.sys.mac.programmer:9412
Path: utzoo!attcan!uunet!munnari.oz.au!comp.vuw.ac.nz!massey!A.Stenhouse
From: A.Stenhouse@massey.ac.nz (Alan Stenhouse)
Newsgroups: comp.sys.mac.hypercard,comp.sys.mac.programmer
Subject: Hypercard stack structure? Corrupted Stack.
Keywords: hypercard, corrupt stack, structure
Message-ID: <144cs-sunb@massey.ac.nz>
Date: 1 Oct 89 06:30:40 GMT
Reply-To: A.Stenhouse@massey.ac.nz
Organization: Comp Sci, Massey Univ, Palmerston North, New Zealand
Lines: 38

Hi, I hope someone can help me.

Our department has a bibliographic Hypercard stack which contains all the
journals, articles, and theses that are contained in our small library.
Unfortunately, this stack has become corrupted:

It comes up with an error message of:

"Can't read card or background ID 44289 at location 5112".

I have tried writing a script that will copy each individual card from the
corrupted stack to a new stack. Ideally this would stop when it came to the
corrupted card. Then I could go to the next card and copy the rest.

Unfortunately, the error message comes up as soon as I try to do anything
within the stack. So I cannot go to any card within the stack once it's open,
nor can I copy any card.

What I've been doing now is having a look at the structure of the stack itself.
I cannot find the card with an ID of 44289 (Hex AD01). I can find something
with an ID of 44289 though. It is preceded by PAGE within the stack structure.
It isn't a card - is it a background? I don't think it is because there are
many occurrences of PAGE within the stack, but only two backgrounds. Can
anyone tell me what PAGE signifies?

Also, can anyone give me the structure of Hypercard stacks - i.e. the
representation used for a card, background etc., so that I can attempt to fix
it, or suggest a good way to fix it. We have a (dated :-() backup, and we
don't really want to enter the rest of the data again!

Thanks in advance, Alan.

* Alan Stenhouse	| Phone     0064 63 69099 ext. 8745
* Computer Science Dept | Fax.      0064 63 505611
* Massey University	| Internet: A.Stenhouse@massey.ac.nz
* Palmerston North      | Janet:    A.Stenhouse@nz.ac.massey
* New Zealand           | DON'T PANIC!
*------------------------------------------------------------*