> From bill lam bbill.lam at gmail.com 
> On further browsing the source, I think the problem is not bug in pclose
> per se, 
> 
> pclose=: 3 : 0
> try.
>   wd 'psel ',PFormhwnd
>   if. ifjwplot'' do.
>     wpsave_j_ :: 0: PForm
>   end.
>   wd 'pclose'
>   pd 'reset'
> catch. end.
> )
 
I think it is a bug, albeit small. There is no reason to have code
between wd 'psel ',PFormhwnd and wd 'pclose'. In our case, that code
executes another psel which directs pclose command to a wrong window.
In fact it would, probably, be more robust to do it in a single wd call
wd 'psel ',PFormhwnd,';pclose'
-- in case explicit verb execution is preempted (i am talking purely
hypothetically here)
 
                                          
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to