[java-dev] [Max5] MaxSystem.locateFile
Martin Robinson
martinrobinson_mail at yahoo.co.uk
Sun May 18 04:39:02 MDT 2008
- Previous message: [java-dev] Re: [Max5] MaxPatcher.getAllBoxes() not supported anymoAny
- Next message: [java-dev] [Max5] MaxSystem.locateFile
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [java-dev] Re: [Max5] MaxPatcher.getAllBoxes() not supported anymoAny
- Next message: [java-dev] [Max5] MaxSystem.locateFile
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
