WP7 Background Audio - Memory Leak or Not?

落花浮王杯 提交于 2019-12-10 10:56:12

问题


I'm creating an app that plays background audio.

Here's the RAM usage of my background audio playing process:

Is this a memory leak or no?

I'm concerned because if / when it exceeds 15MB, the OS will silently kill my player, which is undesirable.

Is there a way to view what occupies that memory? My MediaStreamSource implementation only allocates single 512kb buffer on the startup, and never allocates a single byte while playing. BTW, the stream bitrate is 96 kbit/sec, which is the same as memory allocation rate of the app.

Is there a way to make the GC to be less lazy, and sleep for less then 8 minutes? I don't really like those spikes…

Update 2013-04-21: looks like some OS update (most likely the 7.8) has fixed the issue. Thanks for that, Microsoft! However, next time please note it in the update history :-)

来源:https://stackoverflow.com/questions/14197881/wp7-background-audio-memory-leak-or-not

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!