On 18 Dec 2007 at 13:54, Paul Gauthier said: > Anyone knows what the limit in J/Windows is here ? > > Try doing a simple verb as: > > windo=: 3 : 0 > wd'winexec "cmd /K ',(_2}.;y#<'cd&&'),'";' > ) > > Then try: windo 254 > Several times and it works fine. > Now try: windo 255 > > I get an error message saying: > "J has encountered a problem and needs to close. We are sorry for the > inconvenience." etc.
Looks like a length limit, perhaps in the underlying Windows API. wd 'winexec "cmd /C echo ',(y$'* '),'";' [ y=.1012 succeeds whereas wd 'winexec "cmd /C echo ',(y$'* '),'";' [ y=.1013 fails. Note that $'"cmd /C echo ',(y$'* '),'";' [ y=.1013 1028 and $ '"cmd /K ',(_2}.;y#<'cd&&'),'";' [ y=.255 1028 which suggests to me that the problem lies in a 1023-byte maximum length for the parameter to cmd. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
