Hi,
I had an application where i would navigate from
step1: camera preview
step2: to an activity
step3: and again back to camera preview.....

on going from step 1 to step 2 the camera object is set to "null" and
garbage collector is now supposed to take care of its deletion....... but if
i navigate back to step 3 in less time (2-4 sec) it happens that i get a
crash "out of memory".....

Remedy :: put System.gc() to explicitly call garbage collector wherever u do
null for heavy objects.

Hope it helps.

Ciao.

On Wed, Jun 17, 2009 at 6:53 PM, Boshik <[email protected]> wrote:

>
> Hi,
>
> After a few weeks on market with my app (Ghosts AR) I found few
> interesting issues coming from the users who installed the program. On
> some of the devices my application fails with exception:
>
> java.lang.RuntimeException: Out of memory
>        at android.hardware.Camera.native_setup(Native Method)
>        at android.hardware.Camera.<init>(Camera.java:82)
>        at android.hardware.Camera.open(Camera.java:64)
>
> Strange that I'm personally never got it on my G1 (1.5 firmware).
>
> Any ideas?
>
> Thanks,
> Alex
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to