[comp.lang.postscript] Problem using eexec

david@oahu.cs.ucla.edu (David Dantowitz) (02/13/90)

I converted the following file into eexec format as shown below.  How
can I get the eexec format to work?

When I print it (in eexec format) I get:

ERROR: invalidaccess
OFFENDING COMMAND: def

STACK:

{72 mul }
/inch

----------

Original PS source:


%!PS-Adobe-1.0
%%%
%%%
%%%

0 0 moveto


/inch { 72 mul } def

/Helvetica findfont 20 scalefont setfont

1 inch 10 inch moveto

(Test) show
showpage

---------

eexec file sent to printer:


%!PS-Adobe-1.0
%%%
%%%
%%%

0 0 moveto




currentfile eexec
ce1b9f42cccaa5efda0f3664f4b8a69d2f9f0a18c9a310738b72544a31e855bd
974fb4e0fbd85db6f57a09c84181f2840f7631f8034c48968054df017525f7d7
e92a1c9fed1abc9e580bf33925b32c098b5c5ef4630f61476b5da5a4d309b715
39301cb38d58a2c763b295361271ceb036cf2bc3f18d10e1733dbf741ad78243
bde52a6df4145675b0a013bfd22568a6061a83a2fd6c07bc88


David Dantowitz
david@cs.ucla.edu

Singing Barbershop when I'm not computing...

ddl@husc6.harvard.edu (Dan Lanciani) (02/13/90)

In article <31807@shemp.CS.UCLA.EDU>, david@oahu.cs.ucla.edu (David Dantowitz) writes:
| 
| I converted the following file into eexec format as shown below.  How
| can I get the eexec format to work?
| 
| When I print it (in eexec format) I get:
| 
| ERROR: invalidaccess
| OFFENDING COMMAND: def

	For reasons that are probably now obvious, eexec pushes
systemdict of the dictionary stack before running the encrypted code.
The "def" therefore trys to alter a readonly dictionary and fails...
Adding something like "userdict begin" should solve the problem.

				Dan Lanciani
				ddl@harvard.*