what other files have to be loaded for this to work? I did what you
suggested and get a syntax error followed by a crash. Even with debug on
later to see where the problem is

cheers


Roelof

"Have a cool mind and a warm heart" - Ajahn Sona
 "Like ......(hamsters on a wheel), (ambitious people) still climb and
climb, with great labor, and incessant anxiety, but never reach the top."  
Robert Browning
"We shall not cease from exploration. And at the end of all our exploring
Will be to arrive were we started and know the place for the first time" -
T. S. Eliot


Dr. Roelof K. Brouwer PH.D.  P.Eng.
Professor Emeritus
Dept. of Computing Science
School of Advanced Technologies and Mathematics
Thompson Rivers University
900 McGill Road
Kamloops, BC
Canada, V2C 5N3

email : [email protected]
www.tru.ca/advtech/compsci/faculty/rbrouwer


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Dan Bron
Sent: December-15-08 3:21 PM
To: Programming forum
Subject: Re: [Jprogramming] savemat_jviewmat_

Roelof wrote:
>  I tried the above and I have the same problem as before

Yes, I too get a blank image & file.  I don't get the freeze though.  Sorry
for not testing my suggestion before I made it.

I wonder why  9!:27'theSentence'  is different from executing  theSentence 
directly in the IJX window.  My suspicion is that control doesn't pass
back from the J engine (j.dll) to the JFE (j.exe) until after the immex
phrase has completed.  

That is, in the situation where you enter a phrase in the IJX window, press
enter, then enter another phrase, then enter again, from the first enter
to the second, control has passed from j.dll to j.exe and back to j.dll. 
I speculate that in the case of  9!:27  j.dll checks the immex flag before
it returns control to j.exe (executing a phrase if appropriate), and so
this round trip is avoided.  However, in Roelof's case, the transfer of
control is required, as j.exe has the responsiblity of painting graphics.

Which makes me think his aims might be acheived via a different indirection:

        vm =: verb define
                viewmat i. 16 16
                wd 'timer 500'
                sys_timer_z_ =:  'timer 0' wd@:[ savemat_jviewmat_ bind
'C:\immex0.bmp'
        )
        
        vm''

This works, which seems like corroboration of my hypothesis (j.exe owns wd,
and hence control must pass back to it before timer events can fire, so we
get the requisite round trip).

-Dan
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to