Graphics Device Cannot Be Null

I’ve just installed MonoGame 3.2 and then tried to build & run my project but it goes into a NullReferenceException. It seems that if I create a new ContentManager and then try to load a new asset with it, it throws a NullReferenceException error. Is it an internal error? The previous version did not have this problem, and I did not change the code at all.


Just put the initialization of the new ContentManager in the Initialize method of your Game, I always called it in the constructor which is worked in the previous versions, but it does not work in MonoGame 3.2.

//this function creates a new contentmanager and stores it in a static reference.
ScreenManager.setContent(Content.ServiceProvider, Content.RootDirectory);

Can you provide us the call stack of the crash?