Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucsd!hub!6600pete From: 6600pete@ucbsuxa.ucsb.edu (GurgleKat [Pete Gontier]) Newsgroups: comp.sys.mac.programmer Subject: THINK Pascal vs. PBGetFCBInfo on System file Message-ID: <4107@hub.UUCP> Date: 28 Feb 90 09:33:35 GMT Sender: news@hub.UUCP Lines: 17 I'm in the process of writing a ShutDown proc that needs to know where the Blessed Folder is, and apparently the working directories are all gone at volume unmount time. That's by way of introduction; I imagine someone will have an explanation for it. What I did to solve the perceived problem was to use PBGetFCBInfo on the System file, the 'real' refNum of which I got by playing games with UseResFile and CurResFile. So now I know where the Blessed Folder is without SysEnvRec.sysVRefNum and PBGetWDInfo. Nice. But when I try to call PBGetFCBInfo while in the THINK Pascal environment, everything hangs about 75% of the time. The ShutDown proc itself hasn't hung yet. THINK Pascal tries to give me a thumbs down on the offending call, but after it puts up the hand, it's hung. Rich? Pete Gontier | InterNet: 6600pete@ucsbuxa.ucsb.edu, BitNet: 6600pete@ucsbuxa Editor, Macker | Online Macintosh Programming Journal; mail for subscription Hire this kid | Mac, DOS, C, Pascal, asm, excellent communication skills