| Reply | « Previous Thread | Next Thread » |
|
I'v lost 7-8 midlets in my phone now. They are nowhere to be seen, when i look at app-list, but the memory is lost when i check ( tykalut --> Hallinta --> Muisti , in finnish )
When is this firmware bug going to be fixed? If this occurs because of some programming mistake when closing midlets, i would sure like to know what im doing wrong! Here's the relevant code: //User initiated method public void exit() { destroyApp( false ); notifyDestroyed(); } public void destroyApp( boolean unconditional ) { display.setCurrent(null); if( cw != null ) { //PersistentStorage closed cw.closeRecords(); } if( cwCanvas != null ) { //Stops innerclass timer cwCanvas.stop(); } } |
| janne123123 |
| View Public Profile |
| Find all posts by janne123123 |
|
Hello Janne,
Looking at your code snippet the only question that comes into mind is that why do you use display.setCurrent(null)? That call is not for cleaning up, but for putting the midlet into background. Have you checked if your midlet is in background (press and hold Programs button.) Below is an excerpt from Display ref page: " The application may pass null as the argument to setCurrent(). This does not have the effect of setting the current Displayable to null; instead, the current Displayable remains unchanged. However, the application management software may interpret this call as a hint from the application that it is requesting to be placed into the background. " Regards, Petteri / Forum Nokia |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|