Path: utzoo!attcan!uunet!mailrus!cornell!uw-beaver!rice!sun-spots-request From: als@roxanne.mlb.semi.harris.com (Alan Sparks) Newsgroups: comp.sys.sun Subject: SunView 4.0.3 pr_load() fails occasionally Keywords: Windows Message-ID: <9585@brazos.Rice.edu> Date: 30 Jun 90 00:10:15 GMT Sender: root@rice.edu Organization: Sun-Spots Lines: 25 Approved: Sun-Spots@rice.edu X-Sun-Spots-Digest: Volume 9, Issue 251, message 1 I'm having a problem for which I cannot find a cause or cure. Maybe someone out there has a clue... I wrote an image display program for SunView some time ago. It is capable (using other PD software as filters) of displaying GIF-format images. The basic algorithm is, after ascertaining that a file is a GIF file, the program popens() a process running gif2ras (author Patrick Naughton) for reading, and does a pr_load on that file pointer. The returned pixrect is then copied, after centering, to the canvas pixrect. Funny thing is, 95% of the files load OK, but some come up all black, some in the background color, and several come up with "strange" colors. Funnier thing is, if I pipe the output of gif2ras into screenload, the image is displayed correctly. As I have RTFM'ed, does anyone know if SunOS 4.0.3 pr_load() has any known bugs? Does anyone have a suggestion on how to debug such a problem? Can anyone tell me how screenload works, so I can figure out what I'm doing differently? And, (whew!) does 4.1 contain a patch? Thanks in advance. Please email me at the above address; I'll post a synopsis of the responses. -Alan