home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / mac / programm / 22082 < prev    next >
Encoding:
Text File  |  1993-01-24  |  844 b   |  24 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!rsg1.er.usgs.gov!fmsrl7!lynx.unm.edu!nmsu.edu!opus!smargari
  3. From: smargari@nmsu.edu (Susan Margarit)
  4. Subject: process info problems
  5. Message-ID: <SMARGARI.93Jan24154951@emmy.nmsu.edu>
  6. Sender: usenet@nmsu.edu
  7. Organization: NMSU Computer Science
  8. Distribution: comp.sys.mac.programmer
  9. Date: Sun, 24 Jan 1993 22:49:51 GMT
  10. Lines: 12
  11.  
  12. Consider the following code fragment:
  13.  
  14. err := GetFrontProcess(psn);
  15. err := GetProcessInformation(psn,info);
  16.  
  17. after the first line, err is 0 but after the second line, I get error
  18. -50 (process serial number is invalid). It seems like a pretty
  19. straight forward piece of code. Why does it fail? (sys 7.1). It
  20. doesn't matter if I run it standalone or in TP projects, foreground or
  21. background.
  22.  
  23. Jim Margarit (smargari@nmsu.edu)
  24.