Question

I am working on nokia asha s40 using nokia sdk2.0 and lwuit1.5.My problem is that when i use my app for some time it throw an error of out of memory error.so please suggest me how can manage run time memory.when an error comes that time free memory is approximately 3000-4000 bytes which not sufficient for perfrom any operation . So please suggest me how i can prevent this error.it is big issue in my app.

Était-ce utile?

La solution

It throws the error beacuse, you are using resources and not deallocating them. De allocate the resources which you are not using currently, like images and objects.

Example: dealloc(){

logoImg=null; de allocate here myObj=null; }

Hope this might help you.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top