When the J Engine is running the J Front End message loop that processes
events is not running.
This means that your break code will only run when the J Engine behind that
front end is idle.
If your intent was that your break menu command interrupt another J session
then it will do so. But I suspect that was not your intent.
Break must be signalled to the running task you want to interrupt from a
completely different task.
If you are running in Windows one option is to drag the Yellow J icon to the
left area of the task bar. Then if you want to interrupt a running J session
you simply click on the Yellow J icon in the taskbar.
In Unix you can create a desktop shortcut to run the jbreak shell script.
----- Original Message -----
From: "Philip A. Viton" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Sunday, December 30, 2007 2:08 PM
Subject: Re: [Jbeta] windows dbeta available
Re: setting up jbreak from 602-d beta (win32).
Can someone tell me if this should work, and if not, what I'm doing wrong?
In jijs.ijs I've added a line to verb JIJS:
menu break "Break" "" "" "" ;
and then, at the end of the script
jijs_break_button =: 3 : 0
wd 'winexec "c:\ProgramFiles\j602\bin\jbreak.bat"'
)
Then, when I click on the new Break item on the menu, a little dos window
appears and disappears, so it looks as though it's running correctly. But
when I try to stop a loop for keyboard input, using the prompt verb from
misc, nothing happens. When I manually run jbreak.bat from a dos session,
then I get a keyboard interrupt in my J session.
So my question is: is this expected? That is, should I be able to set up a
menu item to run the jbreak.bat function so that it will interrupt
keyboard input correctly? And if so, how?
Finally, I've tried repeatedly to assign this to a key sequence eg F2. In
my j session after I've done this, hitting F2 runs the dos box, as with
clicking on the menu item. However, when I exit j and try to restart it, I
get an IDE error (Error and no IDE window for debugging) and j wont start.
If I remove the assignment from SKEYS in config.ijs, eg
SKEYS=: 0 : 0
break F2
)
j starts up correctly. Any ideas?
Thanks!
------------------------
Philip A. Viton
City Planning, Ohio State University
275 West Woodruff Avenue, Columbus OH 43210
[EMAIL PROTECTED]
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm