Newsgroups: comp.sys.mac.programmer Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!hellgate.utah.edu!dog.ee.lbl.gov!ux1.lbl.gov!osborn From: osborn@ux1.lbl.gov (James R Osborn) Subject: Re: THINK Pascal 3.0.2 SFPutFile alias bug? Organization: Lawrence Berkeley Laboratory References: <1991Jun3.180238.80@and.cs.liv.ac.uk> Message-ID: <13915@dog.ee.lbl.gov> X-Local-Date: Tue, 4 Jun 91 12:03:31 PDT Reply-To: osborn@ux1.lbl.gov (James R Osborn) Date: Tue, 4 Jun 91 19:03:31 GMT In article <1991Jun3.180238.80@and.cs.liv.ac.uk> phil@and.cs.liv.ac.uk (Phil Jimmieson) writes: >I know that THINK Pascal 3.0.2 is only supposed to be *mostly* compatible with >system 7 - but I just found a very strange problem with it. I was trying to >save a source file into a sub-folder. When the new SFPutFile dialog came up I >had to scroll to get to the sub-folder I wanted, but before I got there it >crashed everytime, with the Finder reporting a type 10 error. I happened to >notice that the dialog had just drawn a SICN for an application before it fell >over - and had not drawn the application's name. The problem seems to occur >when the SFPutFile dialog shows a file that has been aliased (inthis case I had >an alias to ResEdit 2.1 in the same folder as my project). Moving the alias out >of the way stopped the crash, until I used the SFPutFile dialog to enter >another folder where there was an alias - and then it crashed again. This error >occurs repeatedly with THINK Pascal the application - not my running project, >and it doesn't seem to matter what the alias is - just that there's one there >to be displayed by SFPutFile. > >Phil Jimmieson, *************************************************** >Computer Science Dept., * JANET : phil@uk.ac.liv.cs.and * >Liverpool University, * INTERNET : phil@and.cs.liv.ac.uk * >PO Box 147 *************************************************** >Liverpool L69 3BX "The contortionist has gone to put his feet up." >(UK) 051-794-3689 "Yes, it's a neat trick if you can do it..." Maybe THINK Pascal uses some sort of file filter with SFPutFile which doesn't quite like aliases. I don't know the particulars of how an alias in distinguished from real files. Maybe some bits get set which causes this hypothetical file filter to blow chunks. Any 7.0 file system experts care to comment? -- James .------------------------------.--------------------------------------. | James R. Osborn | It just goes to show you it's always | | Lawrence Berkeley Laboratory | something. Either it's baffling | | osborn@ux1.lbl.gov | tech notes or your mac is smoking. | | (415) 548-8464 | It's always something... | '------------------------------'--------------------------------------'