Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!watmath!orchid!jlee4 From: jlee4@orchid.waterloo.edu (jlee4) Newsgroups: comp.sys.mac.programmer Subject: FFlush problem in LSC Debugger Message-ID: <113@orchid.waterloo.edu> Date: 15 Jun 89 15:36:47 GMT Reply-To: jlee4@orchid.waterloo.edu () Organization: U. of Waterloo, Ontario Lines: 27 Hi people. I just got my 4 Megs of RAM, so I started hacking away on nethack. When suddenly, the LSC Debugger started barfing (i.e. Bus Error) when fflush(stdout) was invoked. This was the first time it happened (i had used the Debugger before on the same project 3 months ago with no problems) and now it won't stop. Symptoms: Only happens in LSC Debugger, if in Finder, or executing from within app (not Run command) or with Use Debugger turned off in MultiFinder, it works fine. System: Mac II, 5MB, 40MB HD LSC and LSC Debugger partitions are set to 700K and 200K respectively. Project is set to 700K, use STRS, no multifinder flags set, MacsBug symbols only. Looking at the source for fflush (in std_filepos.c) it seems as if it doesn't check to see if the file is a Stdio file and gets trashed when it calls GetVRefNum. When it does work it seemd, to call the HFS routines, GetVRefNum and PBFlshVol even on stdout! Should I just add in the patch to check for Stdio files, or what am I doing wrong. Johnny Lee jlee4@orchid.waterloo.edu watmath!orchid!jlee4