2

I have a VoIP app that combines on Windows phone 8.1 SDK.

For every times I call VoipBackgroundProcess.Launch() to start VoIP process in background, and VoipPhoneCall.NotifyCallActive() to notify the system that my VoIP call is active, I get the Windows.System.MemoryManager.AppMemoryUsage to check the app's memory usage before and after i called that functions.

In my testings, after I called that function, memory usage always increases a lot of memory immediately. Example on 512MB ram lumia device:

  1. VoipBackgroundProcess.Launch() : memory usage increases 51 MB
  2. VoipPhoneCall.NotifyCallActive() : memory usage increases 100 MB

Besides that, my app also do a lot of works related to memory, such as rendering images or media messaging but the memory limit is only 180 MB (get from Windows.System.MemoryManager.AppMemoryUsageLimit), it's easy to get exception out of memory and crash my app.

On combining my app on Windows phone 8.0 SDK, I do the same thing but when I get memory usage (from Microsoft.Phone.Info.DeviceStatus.ApplicationCurrentMemoryUsage), it do not take memory like Windows phone 8.1 SDK.

Does anyone have any ideas for why the system take a lot of memory when calling that VoIP apis on Windows phone 8.1 SDK?

  • I would recommend using the `Performance and Diagnostic` tools to check if you can find something that is causing the issue. https://msdn.microsoft.com/en-us/library/dn435909.aspx – Barnstokkr Nov 26 '15 at 10:13
  • I've just tried profiling memory session and it doesn't work, my app started, stuck in loading page for few seconds, just crash, back to the home screen and visual studio started to getting memory logs, and it doesn't have anything related to VoIP api. Instead, I use Windows Phone Developer Power Tools (8.1), I got this graph and it doesn't show anything to find out what cause the issue., and the memory on it doesn't reflect the memory I mentioned before. [my graph](https://www.dropbox.com/s/elr10l9a72ml72l/Screenshot%202015-12-02%2009.31.11.png) –  Dec 02 '15 at 02:49

0 Answers0