Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!ux1.cso.uiuc.edu!tank!ncar!hao.ucar.edu!murphy From: murphy@hao.ucar.edu (Graham Murphy) Newsgroups: comp.sys.mac.programmer Subject: parameter passing Message-ID: <6189@ncar.ucar.edu> Date: 2 Feb 90 15:04:31 GMT Sender: news@ncar.ucar.edu Reply-To: murphy@hao.ucar.edu (Graham Murphy) Organization: High Altitude Observatory/NCAR, Boulder CO Lines: 33 Desire: Routine A is invoked with >1 attached documents. This routine then _Launches Routine B which can examine the same documents. Reality: Routine A is invoked and GetAppParms shows the attached documents with valid names and valid working directory numbers. However, when Routine B starts up ONLY the first document has a valid WDRefNum. Notes: Working directories associated with Routine A are closed following the completion of this routine (standard MF procedure). Thus the working directories corresponding to documents 1 to N are closed. Somehow (!) the first document receives a NEW working directory (i.e. a new WDRefNum is allocated). The remaining documents do not - their invalid WDRefNums are retained. Question: ANY working directories I open up in Routine A get closed and disk directory numbers are generally not suitable, so how does one pass more than one document to a Launched routine? Graham Murphy High Altitude Observatory National Center for Atmospheric Research P.O. Box 3000, Boulder CO 80307-3000. Ph:(303)497-1565; Fax:(303)497-1137. INTERNET: murphy@hao.UCAR.EDU; Solar PO: gmurphy@solar.STANFORD.EDU