🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #7321

Limitcheck using stringwidth

#7321
From: Brad Clements
Date: Tue, 19 Jul 1988 21:48
32 lines
1538 bytes
I have a rather complicated PostScript program which uses the
stringwidth operator.  After a certain number of repititions the
operator causes a limitcheck error. I am unable to determine which
limit is being exceeded.

There are lots of imbedded arrays in memory, but this has worked before.
the program loops through the arrays, following them in a tree like 
fashion and determines the stringwidths of a string, does a moveto and
show (within the context of a gsave) then traverses the tree some more.

The arrays look something like:

	/root [  0 2 3 4 5 (name_root) 2323 23 23 [
		[ 0 2 3 4 5 (name_limb1) 23 23 23 [] ]
		[ 0 2 3 4 5 (name_limb2) 1 1 1 [
		  	   [ 1 2 23 4 5 (name_limb2_child) 1 2 2 [] ]
		        ]
		]
	] def

and so on. This has worked for up to 900 such embedded arrays w/o
problem. Later I changed the program, adding a part that takes
the stringwidth of the names. And now I get a limitcheck.

Does anyone have any ideas (other than 'simplify the program')

Thanks
Brad Clements
bkc@omigate.clarkson.edu


		
Technical Details
Message-ID: <1207@sun.soe.clarkson.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!pasteur!ames!mailrus!cornell!batcomputer!sun.soe.clarkson.edu!bkc

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!pasteur!ames!mailrus!cornell!batcomputer!sun.soe.clarkson.edu!bkc
From: bkc@sun.soe.clarkson.edu (Brad Clements)
Newsgroups: comp.lang.postscript
Subject: Limitcheck using stringwidth
Message-ID: <1207@sun.soe.clarkson.edu>
Date: 19 Jul 88 21:48:36 GMT
Sender: bkc@sun.soe.clarkson.edu
Reply-To: bkc@sun.soe.clarkson.edu (Brad Clements)
Organization: Clarkson University, Potsdam, NY
Lines: 31