Path: utzoo!dptcdc!jarvis.csri.toronto.edu!mailrus!purdue!decwrl!wam.UMD.EDU!russotto From: russotto@wam.UMD.EDU Newsgroups: comp.sys.mac.programmer Subject: Re: What is OpenRFPerm doing?!? Message-ID: <8904171942.AA00475@vs03csc.UMD.EDU> Date: 17 Apr 89 19:42:17 GMT References: <1146@uvm-gen.UUCP> Distribution: na Organization: University of Maryland, College Park Lines: 30 In article <1146@uvm-gen.UUCP> chaffee@uvm-gen.UUCP (Alex D. Chaffee) writes: >Help! All I did was open a resource file with the following call > OpenRFPerm(fName, vRefNum, (SignedByte)fsRdWrPerm); >and my resources got mangled. After the call, my Alerts show all the >signs of being handles to nowhere (i.e. they seem to be appearing off-screen, >they beep occasionally...). >fName and vRefNum come straight from SFGetFile's reply record, and there >are no ALRTs in the file I opened... Can anybody remember when _they_ >were inexperienced and ran into something like this? > >Thanks, >Alex Chaffee >chaffee@uvm-gen.uvm.edu > >-- >Alex Chaffee >chaffee@uvm-gen.uvm.edu >Disclaimer: The ideas expressed above were implanted in my brain by Martians >----- Is this MPW C? In MPW 2.0.x, at least, you need to call p2cstr(&fName); and then make the call using the pointer, i.e.: OpenRFPerm(&fName, vRefNum, (SignedByte)fsRdWrPerm); -- Matthew T. Russotto russotto@wam.umd.edu