OK, I've got back to my windows box. Here's how it goes...
Here is my test file:
-------------------------------------
NB. my usual definitions ...
print=: ](1!:2)2:
enter=: [:". 1!:1@<&1:
enter2=: [:". 1!:1&1:
prompt_char=: [:1!:1[:1:](1!:2)2:
prompt_numb=: [:".[:1!:1[:1:](1!:2)2:
test=: monad define
print'enter something for enter '
a=: enter''
print'enter something for enter2 '
b=: enter2''
c=: prompt_char 'enter characters '
d=: prompt_numb 'enter numbers '
a;b;c;d
)
---------------------------------------
Here's how it runs as expected under j64-701:
load'test'
test''
enter something for enter
4 17.3 _2.8e14
enter something for enter2
4 17.3 _2.8e14
enter characters
4 17.3 _2.8e14 abc
enter numbers
4 17.3 _2.8e14
+---------------------------------------------------------------+
?4 17.3 _2.8e14?4 17.3 _2.8e14?4 17.3 _2.8e14 abc?4 17.3 _2.8e14?
+---------------------------------------------------------------+
$d
3
$c
18
JVERSION
Engine: j701/2011-01-10/11:25
Library: 7.01.083
Platform: Win 64
Installer: j701a_win64.exe
InstallPath: c:/users/jph/j64-701
==============================================================================
Here's what happens on the same machine under j801:
JVERSION
Engine: j701/2011-01-10/11:25
Library: 8.01.008
Qt IDE: 1.0.3
Platform: Win 32
Installer: j801 beta install
InstallPath: c:/users/jph/j801
load'test'
test''
enter something for enter
4 17.3 _2.8e14
Upon entering the above line,
J is greyed out and a message
appears:
jqt.exe has stopped working
Windows can check online for a solution to the problem.
-> Ckeck online for a solution and close the program
-> Close the program
The same thing happens when running directly in the window:
load'test'
a=. prompt_numb 'Enter some numbers'
Enter some numbers
7 _8 2.3e7
Upon hitting return, J crashes as before.
Any ideas as how to diagnose this problem. Otherwise j801 works
and is quite snappy.
Patrick
On Thu, 21 Mar 2013, J. Patrick Harrington wrote:
I'll do that tomorrow as soon as I'm back to my windows
computer.
This is off topic, but on this machine (MacBook Pro), I get
JVERSION
Engine: j701/2011-01-10/11:25 build: Feb 6 2011 16:16:29
Library: 8.01.008
Qt IDE: 1.0.3
Platform: Darwin 64
Installer: j801 beta install
InstallPath: /Users/jph/j64-801
Yet I still have issues with j801 on this Mac.
Viewmat does not work (nothing displayed) and plot
still invokes Acrobat to display graphs. But on
the Mac, "enter" does work:
enter
[: ". 1!:1@<&1:
a=. enter''
3 77.77 3e25
a
3 77.77 3e25
Right now I just would like to solve the windows
problem, since everything else seems to work on
that platform.
On Fri, 22 Mar 2013, bill lam wrote:
I tested it ok. Can you provide a script to reproduce
the crash?
What is the output if you type
JVERSION
Чт, 21 мар 2013, J. Patrick Harrington писал(а):
February 6? As I said, I did a clean install a few days
ago, and on my system, it's not fixed.
On Fri, 22 Mar 2013, bill lam wrote:
>Around 2013-02-06 17:57 Jinputcb fix
>
>Чт, 21 мар 2013, J. Patrick Harrington писал(а):
>>Bill,
>> I'm away from my windows computer now, but I think it was
>>Tuesday that I deleted all my j801 folders and did a fresh install.
>>How long ago was the input crash fixed?
>> Patrick
>>On Fri, 22 Mar 2013, bill lam wrote:
>>>The keyboard input crash should already fixed in eariler updates.
>>>Did you get the crash in the lastest jqt update?
>>>
>>>http://www.jsoftware.com/jwiki/Guides/Qt%20IDE/Install
>>>
>>>Чт, 21 мар 2013, J. Patrick Harrington писал(а):
>>>>
>>>> I've gone back and have reinstalled j801a_win32 once again
>>>>on my Windows 7 desktop and now things seem to be working
>>>>very well. The jqt ide is quite attractive; plot, viewmat,
>>>>OpenGL, etc. all are working. Great.
>>>>
>>>> There is one problem that has cropped up, however, that is
>>>>an issue for me. Many of my prograns prompt me to enter
>>>>parameters from the keyboard. Since time immemorial I have
>>>>used the phrase enter=: [: ". 1!:1@<&1:
>>>>I don't know where I got it, but it works in j602 & j701.
>>>>Further, even though the dictionary says 1!:1 y with y=1
>>>>does not work within a script, it always has.
>>>> But in j801 for windows it crashes J. A window pops up
>>>>with the message "jqt.exe has stopped working" and prompts
>>>>you to close the program.
>>>> This crash occurs not only if "enter" is in a script,
>>>>but even when it's called directly, e.g.
>>>> a=. enter''
>>>>(I enter something: crash!)
>>>>
>>>> Is there a way around this? I hope creating some pop-up
>>>>form isn't the only solution, as I've got dozens of programs
>>>>to deal with.
>>>>
>>>> Patrick
>>>>
>>>>
>>>>----------------------------------------------------------------------
>>>>For information about J forums see http://www.jsoftware.com/forums.htm
>>>
>>>-- >regards,
>>>====================================================
>>>GPG key 1024D/4434BAB3 2008-08-24
>>>gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
>>>----------------------------------------------------------------------
>>>For information about J forums see http://www.jsoftware.com/forums.htm
>>----------------------------------------------------------------------
>>For information about J forums see http://www.jsoftware.com/forums.htm
>
>--
>regards,
>====================================================
>GPG key 1024D/4434BAB3 2008-08-24
>gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
>----------------------------------------------------------------------
>For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
--
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm