I found my problem and fixed it. However, I created a very simple startup.ijs which showed that the ijx locale is not created before startup.ijs is run. If the ijx locale has to be <'0' then one cannot create any numbered locales in startup.ijs .
The startup.ijs script: locales_base_=:conl'' When J completes initialization: names'' locales locales +----+-+----+----+-+ |base|j|jcfg|jijs|z| +----+-+----+----+-+ Does the <'0' locale for the ijx window get created even for run-time only applications? In J601 I changed error handling for run-time applications to bring up a ijx window on an error instead of just displaying an error message and terminating J. I have found this to be most useful in debugging an unexpected error. Sometimes the errors are hard to duplicate and it is nice to be able to look at the problem as it occurs. If with this modification and the application uses numbered locales then the ijx locale may not be <'0' . But I'm really glad to see that wcsize_z_ really works now and is no longer a dummy. On Jan 25, 2008 6:54 PM, Chris Burke <[EMAIL PROTECTED]> wrote: > Don Guinn wrote: > > I'm not sure what my initialization code is doing yet, but for some > reason > > it causes the ijx locale to come up as <'1' instead of <'0' . This > causes > > wcsize_z_ to fail as it looks for SMHWNDP_0_ , which is not there as > that > > locale is for something else. Don't know what yet. That's my fault. It > is > > <'0' if I start up J without my initialization. > > > > What concerns me is the assumption that the ijx locale is always <'0' . > Is > > this a valid assumption? Should there be a name placed in the z locale > > containing the name of the ijx locale allowing a reference to it like > > SMHWNDP__ijxlocale in case the ijx locale moves? > > The boot sequence does create the ijx window first, and since there is > only one such window, I think it is reasonable to assume that this is in > locale 0. > > Your own initialization code should be run at the end of boot - this is > best done by putting it in the startup script. > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
