I'm trying to get a Windows Phone 7 XNA game to run in the emulator, however it simply quits after calling the Game.Initialize function. The only output it gives is:
A first chance exception of type 'System.NotSupportedException' occurred in Microsoft.Xna.Framework.Graphics.dll 'taskhost.exe' (Managed): Loaded 'Microsoft.Xna.Framework.GamerServices.dll' A first chance exception of type 'System.Threading.ThreadAbortException' occurred in Microsoft.Xna.Framework.dll
No idea why, the same program runs fine when running for Windows desktop.
OK upon further investigation I've found that the error occurs because I'm initailizing spritebatch in Game.Initialize:
base.Initialize();
if (spriteBatch == null)
{
spriteBatch = new SpriteBatch(GraphicsDevice);
}
If I remove spriteBach = new ... it runs fine, however when I initialize it the update/draw functions the game WILL just exit...