After creating %ZSTART in %SYS, Studio can't log on
I created %ZSTART, having just learned about it. I included some minimal code to test it, as follows:%ZSTART
SYSTEM
WRITE "SYSTEM.",!
QUIT
JOB
WRITE "JOB.",!
QUIT
LOGIN
WRITE "LOGIN.",!
QUIT
CALLIN
WRITE "CALLIN.",!
QUIT
Now Terminal still works as normal, and sure enough I get "LOGIN" displayed, but when I start Studio I get an error message such as the following. I wonder what Caché ODBC has to do with it.
---------------------------
Studio
---------------------------
Unable to log on to server BOBSCACHE, namespace APEX
[Cache ODBC][State : 08S01][Native Code 452][C:\PROGRAMS\INTERSYSTEMS\CACHE\BIN\CSTUDIO.EXE]
Message sequencing error
---------------------------
Retry Cancel
---------------------------
Any ideas what's happening here please?
Bob
Your code is writing its message to the principal device of the process spawned to handle your Studio session. That is the TCP/IP device which Studio is reading from, so it gets confused by the unexpected message.
Thanks John. I deleted the routine via Management Portal - problem solved.
Stop iris, go to iris.cpf and disable zstart calls, start iris, remove your zstart routine or comment out io writes, stop iris, reenable zstart calls in iris.cpf, start iris.