Max Crashes when I get js folder.filename, if filename is larger than 128.


    Sep 11 2013 | 11:22 am
    Max Crashes when I get js folder.filename, if a filename is larger than 128 char. Do you have any plans to fix it?

    • Sep 17 2013 | 10:46 pm
      I can't reproduce. Could you post an example?
    • Sep 18 2013 | 6:13 pm
      For example,if I post file length that larger than 128, sometimes max window displays "GEP" in filename, or Max Clashes.
      js: filename:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaGEPJ/jpg fileLength:136
      ////////////////////////////////////////////////////////////////
      "use_strict"; inlets = 1; outlets = 0; autowatch = 1;
      function read(folderPath){
      postFile(folderPath);
      }
      function postFile(folderPath){
      var f = new Folder(folderPath); f.next();
      while(!f.end){
      if(f.filetype != "fold"){
      post("filename:" + f.filename); post("fileLength:" + f.filename.length); post();
      }else{
      postFile(f.pathname + f.filename); }
      f.next(); }
      f.close(); } postFile.local = 1;