Just for info: I’m doing something similar here. A background thread is
creating thumb images of huge PDFs.

The thread keeps on  looping the pages and creates UIImages and saves them
to disk. Everything is encapsulated in using blocks.

In VM Tracker I can see that the memory type “CGImage” keeps on growing
until the last image has been saved to disk and the thread exits. Meanwhile,
I’m getting 200MB of “CGImage” dirty memory. I would expect the CGImages to
be collected immediately because of the using block.

Even after the thread “Memory tag 70” remains high – and from what I heard,
this is cached image data. There shouldn’t be any.

I’ll try if I can hack a small demo project tomorrow.

 

René

 

Von: [email protected]
[mailto:[email protected]] Im Auftrag von Rolf Bjarne
Kvinge
Gesendet: Mittwoch, 2. Mai 2012 12:50
An: fmuaddib
Cc: MonoTouch Forums
Betreff: Re: [MonoTouch] Strange memory leak in my MonoTouch app... only 5
MB live bytes, yet memory goes up to 90 MB and crash

 

Hi,

 

Can you create a complete test project I can try out? I'd like to figure out
what's going on here, but I can't see anything wrong from your code.

 

Rolf

 

On Wed, May 2, 2012 at 10:55 AM, fmuaddib <[email protected]> wrote:

I've a problem with a strange memory leak in my Monotouch app. If you
can help please check my post on stackoverflow:

http://stackoverflow.com/questions/10373464/monotouch-app-killed-for-low-mem
-why-live-bytes-allocation-5-mb-top

Any help is appreciated! Thanks in advance!
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

 

_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to