Getting OutOfMemory exception while working with 8900 blackberry -


i have develop 1 application on blackberry. working fine on 8520 , 9000 when test on 8900. giving out of memory exception in time. got following message on jde's debug

outofmemoryerror no detail message net_rim_cldc-6(4a0cb600)  bitmap  <init>  0x8822  net_rim_cldc-6(4a0cb600)  bitmap  <init>  0x84a5  net_rim_cldc-7(4a0cb600)  pngencodedimage  getbitmapimpl  0x39bd  net_rim_cldc-7(4a0cb600)  encodedimage  getbitmap  0x10f6  net_rim_cldc-7(4a0cb600)  encodedimage  getbitmap  0x10ce  triton-5(4da2e09e)  utility  resizealert  0x7f9d  triton-1(4da2e09e)  alertscreen  paintbackground  0x938  net_rim_cldc-8(4a0cb600)  field  applytheme  0x1071  net_rim_cldc-8(4a0cb600)  field  paintself  0x26f0  net_rim_cldc-8(4a0cb600)  manager  paintself  0x9230  net_rim_cldc-9(4a0cb600)  screen  dopaint0  0x41d3  net_rim_cldc-9(4a0cb600)  uiengineimpl  <private>  0xb576  net_rim_cldc-9(4a0cb600)  uiengineimpl  dopainting  0x93ab  net_rim_cldc-9(4a0cb600)  uiengineimpl  pushmodalscreen  0xa983  net_rim_cldc-9(4a0cb600)  uiapplication  pushmodalscreen  0x9089  triton-1(4da2e09e)  alertscreen  show  0x836  triton-2(4da2e09e)  closecall  update  0xbdf  triton-5(4da2e09e)  request$4  run  0x638b  net_rim_cldc-6(4a0cb600)  application  dispatchinvokelater  0xad1  net_rim_cldc-6(4a0cb600)  application  processnextmessage  0x127a  net_rim_cldc-6(4a0cb600)  application  entereventdispatcher  0xa76  triton(4da2e09e)  tritonclient  runapp  0x3800  triton(4da2e09e)  tritonclient  main  0x3825 

i have used persistent database, threads http connection. not getting why coming on 8900 only.

thanks in advance...

does app use png image resources? looks , looks png image big enough cause outofmemoryerror when bitmap instance being created image. development experience says depends on os version, device model , current device ram state. don't surprised works on 1 device , doesn't on another. prevent outofmemoryerror make sure bitmap dimentions not greater doubled display dimentions. instance, if display 320x240, don't use bitmaps larger 640x480.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -