As I mentioned in a private e-mail to Roelof, I've really spent a lot of time on this - I already looked into the timer route, among other things. The image3 addons are quite easy to use and obviate this problem.
One caveat about the image3 addons: they use a global variable "jpeg_quality" which is set to 75 for 75% .jpg compression. IMO, this is a very bad default as it silently degrades the quality of your image. I usually set this to 90 or 99, e.g. "jpeg_quality_ima3_=: 90" within any script file that uses these functions. On Mon, Dec 15, 2008 at 10:27 PM, Roelof K Brouwer <[email protected]>wrote: > 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 > -- Devon McCormick, CFA ^me^ at acm. org is my preferred e-mail ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
