Recently, I came across 5.2 Performance and Resource Management issue. This is problem because you do not really get whole lots of direction as to what is wrong with your application. So here is basic tips to troubleshoot this issue very quickly.
1) Check your tombstoning and make sure it is quick and you are not saving large data back and forth into the isolated storage
2) MAKE SURE you dispose everything specially any type of streams. This was in fact one of my issue with one of the my app. Below is the sample code that fixed my app issue.
Problem Code:
public void PlaySound(string sound)
{
using (Stream stream = TitleContainer.OpenStream(sound))
{
AnimalSoundEffect = SoundEffect.FromStream(stream);
FrameworkDispatcher.Update();
AnimalSoundEffect.Play();
}
}
Fix Code:
public void PlaySound(string sound)
{
Stream stream = null;
try
{
stream = TitleContainer.OpenStream(sound);
AnimalSoundEffect = SoundEffect.FromStream(stream);
FrameworkDispatcher.Update();
AnimalSoundEffect.Play();
}
catch (Exception ex)
{
LogDto logDto = new LogDto();
logDto.Message = ex.Message;
logDto.Title = “Sound Failure”;
ToeTapzServiceViewModel.Instance.LogException
(Settings.Instance.CurrentTrackingAppId, “Pull And Speak” , logDto);
}
finally
{
// Make sure to Dispose this stream or the garbage collector
// takes FOREVER to kill it and the app loads REALLY slow on the next launch
if (stream != null)
{
stream.Dispose();
}
}
}
Notice the problem code above. I do infact disposes my stream using “Using” but that in fact did not work for me so I had to result to good old fasion style using finally to dispose. There must be delay how “Using” disposes resources vs. actually calling Dispose method directly.


Pingback: How to handle Application test failed – Error: 6.5 Applications that Play Music? | Toetapz's Blog
In My xna Game there is a background music for that whenever i entered in my game i gave one alert message box in which its asking you want to stop media player or not?.If u click yes then media player will stop and ur background sound will be play but if user click volume increase or decrease button “mini-playback controls” will come.And if user click play button then both the sounds will mix.There is any solution to hide or remove or quit mini-playback controls.from volume bar.
OR
U Can Tell Me How we can disable Zune media player from Volume Bar When ever we are in Xna Game And we click volume increase or decrease button.Or we Can Disable Zune Media Player when ever we are inside our game
Thank U