question,

with out the weakref... did you try compressing the bitmaps before
displaying them? I can get an out of memory error with one image if I
don't, but android is made to show a lot of images. Just thinking outloud

On Fri, Aug 17, 2012 at 1:48 AM, bjarke <j...@itai.dk> wrote:

> Hey Guys,
>
> Thank you the suggestion I added the new check and it seems to work.
> However
> I have a new problem now. When I run the application everything works fine
> with images it loads and shows them, but after a while a image is lost. The
> weak reference is still there and I can test it during debugging however
> when the images is shown no image appears. I have tracked the issue down to
> my imagehandler and this use of weak references - if I remove the use of
> weakreference the images loads fine - however then the application runs out
> of memory.
>
> Any suggestion is appreciated - is this way of implementing a simple
> imagecache totally wrong?
>
> Regards Bjarke
>
>
>
> --
> View this message in context:
> http://mono-for-android.1047100.n5.nabble.com/Not-catching-null-reference-why-tp5710468p5711366.html
> Sent from the Mono for Android mailing list archive at Nabble.com.
> _______________________________________________
> Monodroid mailing list
> Monodroid@lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
>



-- 
Extreme Knowledge is not something for which he programs a computer but for
which his computer is programming him.

-Wozniak


   - if my programming advice has helped you, feel free to donate to :
<https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KYUXV2PG88YQQ>

<https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KYUXV2PG88YQQ>
<https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KYUXV2PG88YQQ>
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to