CallbackOnCollectedDelegate when draving

Maybe this old problem topic i had will help. Since this is most likely has to do with the custom vertice structure declaration.

Your error at Line 1021 is here below.

        GL.DrawElements(target, indexElementCount, indexElementType, indexOffsetInBytes);

The code can be found here on git hub.

https://github.com/MonoGame/MonoGame/blob/develop/MonoGame.Framework/Graphics/GraphicsDevice.OpenGL.cs