Dave,
Sorry for the delay.
I've tried to reproduce this error here and can't. Based on the error,
it looks like some kind of session connection error. Does it do it every
time you connect and try to execute this and only this code or does it
do it all the time?
I noticed in a previous message that you used the "Inspect" command.
This means that you are coming up with EsiObjects Programmers privileges
which means you have access to all the EsiObjects internals.
Unfortunately, the tutorial does not elaborate on the different levels
of privileges at startup which it shouldn't at that point. However, it
should simply specify what privileges to startup with and doesn't - I'll
change that.
The point is, if you can see the Inspect command means you have probably
checked all the User privileges in the Connections property sheet for
the session - particularly the "Debugging" option. This means you have
"EsiObjects" programmer and debugging privileges. This means that
anytime you bring up the Xecute Shell, it will come up in the object you
have selected (possibly an EsiObjects object), not the $Environment
object. If you simply type int "ZV" (rather than ZV $ENV) to bring up
the Object Browser, you can quit possibly be in an EsiObjects object.
Consequently, if you can inadvertently change EsiObject by executing
commands.
I'm not saying this is what happened. However, to eliminate this
possibility, please do the following:
1. Export your tutorial work.
2. Do an "upgrade" of EsiObjects. Read the readme file for
instructions. This will not destroy your work - but do a backup
anyway
3. Bring the UI up and under File|Connections|Show, bring the
property sheet up for the session. Under the User tab, make sure
the Debugging and Internals check boxes are unchecked. Log off and
back on. Make sure the "Inspect" does not appear.
4. Try Lesson 14 again.
Let me know what happens.
Note: If you want to keep the Inspect menu option, then make sure you
always type "ZV $Env" to bring the Object Browser up in the context of
the $Env object.