tjt@twitch.UUCP ( T.J.Thompson) (08/12/88)
In trying to use various Sun-rasterfile-to-postscript programs, I often get a VMerror from the Apple LaserWriter Plus. This is usually when trying to do a medium-to-large grey-scale image. This error apparently means that the printer is running out of memory. What I'd like to find out is: do other people run into this problem very often on the LaserWriter Plus? And, is there something I can do to find out whether the LaserWriter has access to all the memory it should? And, is it possible to get more memory installed in a LaserWriter Plus? Thanks for any info. ...Tim Thompson...AT&T Bell Labs/Holmdel/NJ...att!twitch!tjt...
pvo3366@neptune.uucp (Paul O'Neill) (08/15/88)
In article <1086@twitch.UUCP> tjt@twitch.UUCP ( T.J.Thompson) writes: >In trying to use various Sun-rasterfile-to-postscript programs, >I often get a VMerror from the Apple LaserWriter Plus. This is >usually when trying to do a medium-to-large grey-scale image. What you are seeing is a bug in psraster.c. It keeps creating string objects and not reclaiming VMemory. For big images it finally runs out of VM. Here is a patch that works. change line 194 to ______________________________________________________________________ fprintf( outfile, "{restore save GetImageRow} save 6 1 roll image\n"); ---------------------------------------------------------------------- VM will now be restored every time that image calls GetImageRow. Would some kind soul please rewrite this program to not do run-length encoding? Max compression is 2. Average execution time increase is ~10. Bye. Paul O'Neill pvo@oce.orst.edu Coastal Imaging Lab OSU--Oceanography Corvallis, OR 97331 503-754-3251