We're executing the following piece of code on a Nokia 6630:
Enumeration roots = FileSystemRegistry.listRoots();
while ( roots.hasMoreElements() ) {
String root = "file:///" + (String)roots.nextElement();
FileConnection fc = (FileConnection)Connector.open(root,
Connector.READ);
Enumeration fileEnum = fc.list(); // CAUSES PHONE SHUTDOWN
// { snip }
}
The FileConnection.list() (should return list of files/directories under the current one, which is the root when the crash occurs) call on the first root ("Phone memory") found causes phone shutdown. No exceptions thrown, the screen just fades to black and phone powers down. We verified this by writing log messages into a file after each line. The code executes fine on both the Sun's wtk emulator and Nokia's own midp emulator.
We tried this on 2 separate 6630 phones, their firmware versions being:
- 2.39.15 (11-11-04)
- 2.39.129 (27-10-04)
What's going on?
- matti

Reply With Quote

