Could anyone provide any assistance?
I'm finally getting around to converting a long running XNA project to Monogame and am having significant trouble.
After installing Monogame 3.6 and updating my graphics drivers to fix a different problem, I encountered a problem where the program would throw a NullReferenceException on the game1 constructor. The exception was identical to the screenshot in this post: http://community.monogame.net/t/solved-nullreferenceexception-when-creating-instance-of-game-class/8597 . Unfortunately, the solution that worked for that user (referencing Monogame.Framework) did not work for me.
So, I installed and built the source code. I have tried both -master and -develop branches: both exhibit the following behavior.
When I try to draw some indexed primitives, I get the CallbackOnCollectedDelegate exception (example here: https://stackoverflow.com/questions/6193711/call-has-been-made-on-garbage-collected-delegate-in-c) from GraphicsDevice.OpenGL, where PlatformDrawIndexedPrimitives calls GL.DrawElements(target, indexElementCount, indexElementType, indexOffsetInBytes); (line 1058).
So far I've been unable to find a solution to this problem.
(EDIT) Exception Information:
Managed Debugging Assistant 'CallbackOnCollectedDelegate' has detected a problem in 'C:\Users\Quasar\Documents\Qu's Projects\Species\Monogame\Species\Species\bin\DesktopGL\AnyCPU\Debug\Species.vshost.exe'.
Additional information: A callback was made on a garbage collected delegate of type 'MonoGame.Framework!MonoGame.OpenGL.GL+DebugMessageCallbackProc::Invoke'. This may cause application crashes, corruption and data loss. When passing delegates to unmanaged code, they must be kept alive by the managed application until it is guaranteed that they will never be called.