[MonoDevelop] Monogame damage OS after the completion of debugging

Matesax matesax at gmail.com
Sun Jul 6 12:32:39 UTC 2014


Hi,
I only draw one texture:
[code]
public MazeGame()
{
	plot = new GraphicsDeviceManager(this);
	Content.RootDirectory = "Content";

	plot.PreferredBackBufferWidth = 400;
	plot.PreferredBackBufferHeight = clientHeight;
	plot.ApplyChanges();
}

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

}

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

	hero = Content.Load<Texture2D>("hero.png");
}

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



	base.Update(gameTime);
}

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

	canvas.Begin();

	canvas.Draw(hero, new Rectangle(0, 0, 800, 600), Color.White);

	canvas.End();

	base.Draw(gameTime);
}
[/code]
but it is fatal problem! When I close this application (in debugging mode),
it draw vague image in loop over the whole screen. And I cannot break this
loop, therefore I must reboot my OS. I need to develop XNA GUI layer for my
game - but it is impossible in this state! What can I do?
Thank you!



--
View this message in context: http://mono.1490590.n4.nabble.com/Monogame-damage-OS-after-the-completion-of-debugging-tp4663250.html
Sent from the Mono - MonoDevelop IDE mailing list archive at Nabble.com.


More information about the Monodevelop-list mailing list