[comp.lang.postscript] Limitcheck using stringwidth

bkc@sun.soe.clarkson.edu (Brad Clements) (07/20/88)

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