Hello Dan
Exactly the same problem as before i.e. good display followed by being stuck
in a loop and then J dies

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 7:01 PM
To: 'Programming forum'
Subject: Re: [Jprogramming] savemat_jviewmat_

Thanks to Tracy Harms, I realize the problem is probably that my verb  vm
is trying to return a verb (sys_timer).    I don't know
why this didn't cause a problem for me.  Anyway, a better definition would
be:

        require 'viewmat'
        
        execute_later  =: 500&$: : (dyad define)
                wd 'timer ',":x
                sys_timer_z_ =: 3 : ('". y';'wd '' timer 0 '' ') @: (y"_)
                empty ''
        )
        
        
        vm =: verb define
                viewmat i. 16 16
                execute_later ' savemat_jviewmat_ jpath ''~temp\immex0.bmp''
'
        )
        
        
        vm ''   

Does that work for everyone?

-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