When I attempted to resize the window I got an exception indicating that the thread was not a STA thread; so I updated my Main method as follows:
[STAThread] // Added this
static void Main(string[] args)
{
using (Game1 game = new Game1())
{
game.Run();
}
}After I fixed this problem; as soon as I draw some models (using the 'X' format) into the XNA window and try to resize, another exception occurs.
An unhandled exception of type 'System.InvalidOperationException' occurred in Microsoft.Xna.Framework.Game.dll Additional information:
A previous Draw call threw an unhandled exception. See InnerException for details.
Any idea how i could handle this?
Thanks in advance,
noir







