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

Re: OpenResourceFile problem...bug?



In article <jmk3.724405703@crux1.cit.cornell.edu> jmk3@crux3.cit.cornell.edu (Jay M. Krell) writes:
>I am creating a resource file with CreateResourceFile. It has normal access:
>$C3. This works fine.
> 
>I use OpenResourceFile to open it. If I ask for only write access (2), I get
>error $4E, access not allowed. If I ask for read and write (3), no problem.
>[...] 

It's working as designed...even though *you* don't want to read any resources
from the file, the Resource Manager still needs to read the resource map from
the fork when you open the file (CreateResourceFile wrote the map there).

Asking for write-only on OpenResourceFile just isn't useful.
-- 
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.