Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!bionet!ames!lll-winken!uunet!mcvax!kth!sunic!Urd!newsuser From: sund@tde.lth.se (Lars Sundstr|m) Newsgroups: comp.sys.mac.programmer Subject: DA loses resource file on accRun Message-ID: <1989Jul17.050206.20834@lth.se> Date: 17 Jul 89 05:02:06 GMT Reply-To: sund@tde.lth.se (Lars Sundstr|m) Organization: Dept. of Applied Electronics, University of Lund, Sweden Lines: 29 Newsgroups: comp.sys.mac.programmer Subject: DA loses resource file on accRun Expires: References: Sender: Reply-To: sund@tde.lth.se (Lars Sundstr|m) Followup-To: Distribution: world Organization: Dept. of Applied Electronics, University of Lund, Keywords: I'm developing a desk accessory which reads a resource file continuously. When the DA is running as a foreground task it periodically receives accCursor events which is used for reading a couple of resources. So far so good. However when running in the background the DA only receives accRun events and the DA can't reach the resource file because UseResFile(myResFile) gives ResError=-193 "resource file not found". It seems to me that when the DA receives accRun events its called without a context switching but I don't know for sure. Does anyone know what's the problem here? Thanks in advance Lars Sundstroem