XNA Zune HD app won't come out gracefully

I have both built and deployed an app created with a new project template for zune hd. The problem is that whenever the app exits, the Zune reboots. This happens when debugging remotely from a PC or when used correctly from a device. This happens both in debug mode and in release. I've included some basic template code, but it's pretty generic. Does anyone have any idea?

public class DrawGame : Microsoft.Xna.Framework.Game
{
    private GraphicsDeviceManager m_graphics;
    private SpriteBatch m_spriteBatch;

    public DrawGame()
    {
        m_graphics = new GraphicsDeviceManager(this);
        Content.RootDirectory = "Content";

        TargetElapsedTime = TimeSpan.FromSeconds(1 / 30.0);
    }

    protected override void Initialize()
    {
        base.Initialize();
    }

    protected override void LoadContent()
    {
        m_spriteBatch = new SpriteBatch(GraphicsDevice);
    }

    protected override void UnloadContent()
    { }

    protected override void Update(GameTime gameTime)
    {
        if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed)
        {
            this.Exit();
        }

        base.Update(gameTime);
    }

    protected override void Draw(GameTime gameTime)
    {
        GraphicsDevice.Clear(Color.CornflowerBlue);

        m_spriteBatch.Begin();
        m_spriteBatch.End();

        base.Draw(gameTime);
    }
}

      

+2


source to share


1 answer


This is actually by design and you are not doing anything wrong.

See MSDN and this blog



Features that are disabled are DRM music playback and content sharing with other Zune (outside of gaming content). The reason we do this is because we want to keep the Zune safe while you write your games to the device. The only way to get these functions back is to restart the device.

+6


source







All Articles