Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!know!zaphod.mps.ohio-state.edu!ncar!husc6!endor!siegel From: siegel@endor.harvard.edu (Rich Siegel) Newsgroups: comp.sys.mac.programmer Subject: Re: _delete and _rename with inline in MacPascal? Message-ID: <3931@husc6.harvard.edu> Date: 17 Aug 90 13:20:13 GMT References: <1990Aug17.063356.20418@agate.berkeley.edu> Sender: news@husc6.harvard.edu Reply-To: siegel@endor.UUCP (Rich Siegel) Organization: Symantec Language Products Group Lines: 27 In article <1990Aug17.063356.20418@agate.berkeley.edu> bmyers@garnet.berkeley.edu (Brian Myers) writes: > > I am working in MacPascal. (I have to; that's not negotiable.) This >package, because it's intended for educational use, gives you access to >a lot of the Mac traps only through inlines. Whenever I try to delete >or rename a file using the low-level file i/o routines Delete and Rename, >I get an error message saying "an invalid trap number has been given to >inline or generic." I have double checked the trap numbers in several >references, and they are correct. Any ideas? _Rename and _Delete are register-based traps, so you need to use the Generic trap interface, instead of Inline. R. ~~~~~~~~~~~~~~~ Rich Siegel Staff Software Developer Symantec Corporation, Language Products Group Internet: siegel@endor.harvard.edu UUCP: ..harvard!endor!siegel "Who could sleep when there's a hunk with no clothes on wandering around at five in the morning, knocking over furniture?" ~~~~~~~~~~~~~~~