Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

SpriteBatch System.AggregateException

$
0
0

@Toemsel92 wrote:

The game starts and runs without any problem when I built it without the .net native toolchain.
But if I enable this feature (which MS forces me to do) I receive following exception:

Exception thrown: 'System.AggregateException' in System.Private.Threading.dll
Additional information: AggregateException_ctor_DefaultMessage
If there is a handler for this exception, the program may be safely continued.

And this occurs at SpriteBatch = new SpriteBatch()

protected override void Initialize()
{
    ...
    SpriteBatch = new SpriteBatch(Graphics.GraphicsDevice); // <--- HERE
    Graphics.IsFullScreen = true;
    Graphics.ApplyChanges();
    ...
    base.Initialize();
}

Did someone else experience that problem?

EDIT: If I put the SpriteBatch = new .... into the "LoadContent" method, same negative result.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles