XML Feeds

.

[java-dev] [Max5] MaxSystem.locateFile

Martin Robinson martinrobinson_mail at yahoo.co.uk
Sun May 18 04:39:02 MDT 2008


Is anyone else experiencing MaxSystem.locateFile() no longer working in Max 5?

Execution seems to get no further than the call to MaxSystem.locateFile() such that a call to locateFile in a constructor causes a instantiation of the mxj instance to fail.

Below is a simple example I was using to test what was happening. We don't get as far as  'post("after locatefile: "+filename);'

public class testlocatefile extends MaxObject {
    public void read(String filename) {
        post("before locatefile: "+filename);
        String path = MaxSystem.locateFile(filename);
        post("after locatefile: "+filename);
        
        if(path == null)
            post("void string");
        else if(path.length() == 0)
            post("empty string");
        else
            post(path);
    } 
}
--
martin robinson
max/msp java c
installations/performance and systems


More information about the java-dev mailing list