Hi there,
a friend of mine started to work on my project and cloned the repository via SmartGit.
So far so good.
But, when he starts the project he gets following error: System.ArgumentOutOfRangeException was unhandled Message: An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in OpenTK.dll
We figured out, if we comment out the following line mouseState = Mouse.GetState();
The programm executes fine.
We tried VS 2015 and 2017 and also MonoGame 3.6 and 3.5.
So you compiled current version of Monogame from sources?
I guess you are running on Mac.
what you can do first is post an issue on github, with the exception details and stacktrace.
You should be using monogame 3.6 stable release binaries and see if it works
Make sure you’re using 3.6, a lot of things have changed. To migrate, it’s easiest to create a new project from a template and move over your Game files. You should have SDL as the back end then, rather than OpenTK.
Also make sure you don’t use Mouse.GetState() before the Game constructor has been called (SDL won’t be initialized yet), so not in a field initializer or in your Game1 constructor.