Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!purdue!sage.cc.purdue.edu!ar4 From: ar4@sage.cc.purdue.edu (Piper Keairnes) Newsgroups: comp.sys.mac.programmer Subject: PB problems Message-ID: <3895@sage.cc.purdue.edu> Date: 27 Mar 90 18:25:22 GMT Organization: Purdue University Lines: 26 Does anyone notice anything wrong with this code??? It works when the ThinkC debugger is running, but it does nothing when run alone. Also, sometimes, I get a periodic crash with error #12... ideas? SFPPutFile(where, "\p", "\pgarbage", NIL, &reply, SELECT_DIALOG, NIL); if (reply.good) { pb.fileParam.ioCompletion = NIL; pb.fileParam.ioNamePtr = (StringPtr) "\pHowdy!"; pb.fileParam.ioVRefNum = reply.vRefNum; err = PBDirCreate(&pb, FALSE); } What I want this to do is create the folder named "Howdy!" inside the directory that is returned when I press my button called 'Select' in the folder (just the renamed OK button, and the text fields are hidden from view in the dialog. Also, this works in the debugger without the ioDirID field filled. But when I specify the ioDirID as reply.vRefNum... it says folder not found. ----- Piper Keairnes ar4@sage.cc.purdue.edu