Article View: adobe.postscript.programming
Article #1392Re: execution stack overflow
From: SaGS
Date: Fri, 01 Nov 2002 08:15
Date: Fri, 01 Nov 2002 08:15
15 lines
1774 bytes
1774 bytes
I don't see any reason for the behaviour you describe, especially connected to the exec stack. Are you sure that among those 10000 calls of Box, there aren't some (many enough) that have more than 4 parameters? That could produce an operand stack overflow. Also a missing parameter may lead to an operand stack undeflow. Try inserting in the PS code lines like "count == flush" to display the operand stack depth, so you'll see if it increases or not; you may also use "countexecstack" instead of "count" to check the exec stack. This also help locate the exact spot where the error occurs. Other notes, not connected to the problem: (1) Why "2 1 roll" and not "exch"? (2) Level 2 has the "rectfill" operator that does the same thing as your "Box" (with subtle differences that usually don't matter).
Technical Details
Message-ID:
<464F8C54BE51C30158DC2ACEA023DDCD@in.WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!opentransit.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de66786.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10c61a,45ed733d731ef320 X-Google-Attributes: gid10c61a,public X-Google-ArrivalTime: 2002-11-01 00:42:01 PST From: "SaGS" <AntiSpamRemoveAllZsags54Z95@hotZmail.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!opentransit.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.postscript.programming Subject: Re: execution stack overflow Message-ID: <464F8C54BE51C30158DC2ACEA023DDCD@in.WebX.la2eafNXanI> Date: Fri, 1 Nov 2002 00:15:43 -0800 References: <1de66786.-1@WebX.la2eafNXanI> Lines: 17 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit