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

Sep 11, 2013 at 4:22am

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

Max Crashes when I get js folder.filename, if a filename is larger than 128 char.
Do you have any plans to fix it?

#264970
Sep 17, 2013 at 3:46pm

I can’t reproduce. Could you post an example?

#265565
Sep 18, 2013 at 11:13am

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;

#265646

You must be logged in to reply to this topic.