Fileconnection working only if midlet is signed

Whenever I try to use 'Enumeration e = FileSystemRegistry.listRoots();' to get the roots on my simulated file system the emulator asks for permission and freezes*...

However if I package the midlet, sign it and run it via the 'run via OTA' option in the Toolkit it works flawlessly...

And if I try to run an unsigned version via the 'run via OTA' it runs into the same problem...

*By freezing I mean completely stops responding - neither the soft keys nor the 'off' button do anything.

Can someone tell me what抯 causing this? Is there any thing in particular I should do in order to get my app to work normally? I've tried running the code in a separate thread and I still run into the same problem....

[744 byte] By [Chargea] at [2007-11-27 6:04:39]
# 1
Use a try/catch around the FileConnection call and handle the securityexception.
jonathan.lea at 2007-7-12 16:49:03 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2

It wasn't because of a security exception (Adding the try - catch didn't change a thing)..

It was because I was waiting for the operation to complete in the command handler even though the operation itself was occurring in another thread... It抯 been solved now 

Thanks anyway

:D

Chargea at 2007-7-12 16:49:03 > top of Java-index,Java Mobility Forums,Java ME Technologies...