Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)anddev.org • View topic - Memory Leak in Map Overlays

I have a huge memory leak with my map overlays. I have debugged and tested out my threads to make sure they are closing ad nausium so I am going to start by supposing that the memory leak is with my Map Overlay and work my way from there.

I am loading overlays onto my map and when the map is panned I am removing all the overlays and loading new ones. The data to create the overlays is retrieved in a thread. The application works, it just leaks over a meg of memory every reload.

What is the appropriate way of getting rid of overlays so the garbage collector cleans it up? What am I doing wrong?

I finally found my issue. For some reason:face = Typeface.createFromAsset(context.getAssets(), "fonts/sd_led_screen.ttf");was not letting go of all its resources. I am not sure the exact mechanics but I think it was filling the cache and not releasing that memory.

When I pull out the font into my singleton activity and reference it from my overlays everything seems to work correctly and I don't rapidly run out of memory.