new Thread(new Runnable(){
public void run ()
{
try {
pr = Manager.createPlayer("capture://audio");
pr.realize();
// Get the RecordControl, set the record stream,
// start the Player and record for 5 seconds.
}
catch (MediaException ex) {
}
catch (IOException ex) {
}
rc = (RecordControl)pr.getControl("RecordControl");
output = new ByteArrayOutputStream();
rc.setRecordStream(output);
rc.startRecord();

try {
pr.start();
Thread.currentThread().sleep(5000);
rc.commit();
}
catch (MediaException ex1) {
}
catch (InterruptedException ex2) {
}
catch (IOException ex3) {
}

pr.close();

}
}).start();
}


"Unable to delete file mmatemp_-1759301385" appear when rc.commit() and pr.close().

Why?
Hotw to resovle it?
Any idea or suggestion is welome!
thanks