locked
Memory Spike While Navigating Between Pages RRS feed

  • Question

  • Hi, I've found that while navigating between pages in my app there seems to be a memory spike of about 25-30MB for less than two seconds. After the navigation process is finished the amount of memory being used returns to normal.  The Windows Phone Application Analysis tool says that System.Byte[] is accounting for the majority of the new allocations and collected allocations.  Any help with eliminating or reducing this memory spike is greatly appreciated.

    Monday, January 7, 2013 2:26 AM

Answers

  • If the memory spike is not related to objects created specifically by your code, you might want to review and potentially reduce the pixel dimensions of any images associated with your navigation pages. An image with large pixel dimensions might appear quite small as a .PNG file, but can consume a lot of memory when it is decompressed and expanded into memory.

    Hope this helps,
    Mark


    Mark Chamberlain Sr. Escalation Engineer | Microsoft Developer Support | Windows Phone 8

    Monday, January 7, 2013 5:40 PM