[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DOS 3.3 FST



In article <1992Oct31.200717.20065@slate.mines.colorado.edu> gdesroch@slate.mines.colorado.edu (DESROCHERS GARY FREDERIC) writes:
>I have a question on the DOS 3.3 FST.  When going through a list 
>of files in in a directory, how do ya do it?  For every other FST you 
>just do an open of the directory and then step through it with 
>GetDirEntry.  This works for all other FST's but not the DOS 3.3 FST.  

There should be no special stuff to worry about with DOS 3.3: you can
use GetDirEntry just like with any other FST.

In fact, the Finder and Standard File do, so it's not like it hasn't
been tested!


>[...] I keep getting an error $53. [...]

Double check your values for base, displacement, name, and optionList (all
of these are values or pointer that you supply before making the call).
A common mistake is to leave the optionList point uninitialized, which
can trash memory when the system uses it as a pointer to your buffer.

Here's a hunch:  Maybe you're setting the "base" parameter to some value
other than $0000, $0001, or $0002.  From a quick glance at the source,
it looks like DOS 3.3 gives you a $0053 error for any other value (which
is fine), but that ProDOS and HFS don't complain (they treat it as one of
the legal values).

If that doesn't help, post your code!
-- 
David A. Lyons, Apple Computer, Inc.      |   DAL Systems
Apple II System Software Engineer         |   P.O. Box 875
Internet:dlyons@apple.com                 |   Cupertino, CA 95015-0875

My opinions are my own, not Apple's.