2
나는 zune hd에 대한 새 프로젝트 템플릿으로 만든 응용 프로그램을 구축하고 배포했습니다. 문제는 응용 프로그램이 종료 될 때마다 Zune이 재부팅됩니다. 이것은 PC에서 원격으로 디버깅하거나 장치에서 바로 실행할 때 발생합니다. 디버그 모드와 릴리스에서 모두 발생합니다. 기본 템플릿 코드가 포함되어 있지만 매우 일반적인 코드입니다. 누구든지 아이디어가 있습니까?XNA Zune HD 응용 프로그램이 정상적으로 종료되지 않습니다.
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);
}
}
와우. 그게 미친 짓이야.하지만 그게 어떻게 된 것 같아. 빠른 답변 주셔서 감사합니다. –
예, @ Tchami가 정확합니다.이 디자인으로 Zune에게 새로운 시작을 제공합니다 ... – studiohack