Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!exodus!bendenweyr!flar From: flar@bendenweyr.Eng.Sun.COM (Jim Graham) Newsgroups: comp.windows.news Subject: Re: Long winded problem with cps. Message-ID: <1990Oct15.144101@bendenweyr.Eng.Sun.COM> Date: 15 Oct 90 21:41:01 GMT References: <865@modular.UUCP> Sender: news@exodus.Eng.Sun.COM Reply-To: flar@bendenweyr.Eng.Sun.COM (Jim Graham) Distribution: comp Organization: Sun Microsystems, Inc. Lines: 13 Usually the only reason to get an error (-1 return value) from ps_peek_tag() is due to the file being closed. Usually the only reasons for the file to be closed are either you closed it yourself, or an error caused your PostScript process to die and its connection to be closed. Since you are getting a continuous stream of error messages on your console, you may not be seeing a PostScript error message go by at high speed. Try putting an exit() after the error message so that you don't scroll the PS error off the console (or using a console with a scrollbar, or redirecting the stderr output of the server to a file so that you don't lose a record of the errors). ...jim