home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!mintaka.lcs.mit.edu!micro-heart-of-gold.mit.edu!news.media.mit.edu!media-lab.media.mit.edu!delphi
- From: delphi@media-lab.media.mit.edu (Andrew J. Kass)
- Newsgroups: comp.sys.mac.programmer
- Subject: Closing files at interrupt time
- Message-ID: <1993Jan25.204808.11120@news.media.mit.edu>
- Date: 25 Jan 93 20:48:08 GMT
- Article-I.D.: news.1993Jan25.204808.11120
- Sender: news@news.media.mit.edu (USENET News System)
- Organization: M.I.T. Media Laboratory
- Lines: 17
-
- I am writing a library of sound routines, but have recently run into a major
- problem. I am playing files using SndStartFilePlay asynchronously. In the
- completion routine, I set my A5 to access my globals, get the fRefNum of the
- file I was playing, and then call FSClose to close the file. The problem is,
- every now and then, not at repeatable intervals, the machine will hang during that
- call to FSClose. I can get into MacsBug and look at the stack to verify that it
- is hanging during FSClose, but any attempt to exit to shell fails and I have
- to reboot the machine.
-
- If you have any idea what is going on, I'd appreciate it!
-
- Thanks
-
- Andrew Kass
- Speech Research Group
- MIT Media Lab
- delphi@media-lab.media.mit.edu
-