Xna Zune HD 응용 프로그램은 우아하게 종료되지 않습니다
문제
Zune HD의 새로운 프로젝트 템플릿에서 작성한 응용 프로그램을 보유하고 구축하고 배포했습니다. 문제는 응용 프로그램이 종료 될 때마다 Zune이 재부팅됩니다. 이것은 PC에서 원격으로 디버깅하거나 장치에서 바로 실행할 때 발생합니다. 디버그 모드와 릴리스에서 발생합니다. 기본 템플릿 코드를 포함했지만 매우 일반적입니다. 누구든지 아이디어가 있습니까?
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);
}
}
제휴하지 않습니다 StackOverflow