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