[comp.sys.mac.programmer] List Manager Problems?

we08+@andrew.cmu.edu (Ward Freeman Eldred) (09/08/88)

For a program my friend and I are writing, we decided to incorporate several
lists.  This program runs great on a standard Mac II (i.e. only one meg), but
dies with different errors ranging from 2 to 25 to 28 when run on a Plus.
This program does not use large amounts of memory and so these error messages
don't make much sense.  We're also not running under Multifinder.

Any ideas would be greatly appreciated...

(Oh yeah, we were thinking it was a timing problem or something...)

Also, what does a Multifinder error 28 mean?

Thanx again.

Ward

bob@eecs.nwu.edu (Bob Hablutzel) (09/08/88)

> For a program my friend and I are writing, we decided to incorporate several
> lists.  This program runs great on a standard Mac II (i.e. only one meg), but
> dies with different errors ranging from 2 to 25 to 28 when run on a Plus.
> This program does not use large amounts of memory and so these error messages
> don't make much sense.  We're also not running under Multifinder.


All these errors point to a trashed heap, and system error 28 (stack overflow)
points to recursion gone mad. Are you allocating large objects on the stack?
Do you have heavily recursive functions? Are you sure all your memory
references are valid (remember - a II can address memory bytewise, while
a plus is constrained to even addresses (for words and longwords)).

If you have it, try running under discipline. It may work wonders toward
pointing out the problems.

Bob Hablutzel		BOB@NUACC.ACNS.NWU.EDU

Disclaimer:	< Omitted on request of my lawyers >

UD040164@NDSUVM1.BITNET (a.d. jensen) (09/09/88)

Is the program crashing the first time you throw up the lists or on
subsequent entries?

I always had trouble until I started explicitly pitching the lists
and other data structures (ie: LDispose).  It would work the first
time but die on reentry until I started doing this...

dale