Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call to GraphicsDevice.Dispose() throws System.NullReferenceException #3

Open
eulercircles opened this issue Jan 16, 2020 · 1 comment

Comments

@eulercircles
Copy link

eulercircles commented Jan 16, 2020

In a brand new project, when the window is closed and MonoGameGraphicsDeviceService.Dispose() calls GraphicsDevice.Dispose() it receives a System.NullReferenceException.

System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=SharpDX.DXGI
StackTrace:
at SharpDX.DXGI.SwapChain.GetFullscreenState(RawBool& fullscreenRef, Output& targetOut)
at SharpDX.DXGI.SwapChain.get_IsFullScreen()
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.PlatformDispose()
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.Dispose(Boolean disposing)
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.Dispose()
at MyLevelEditor.MonoGameControls.MonoGameGraphicsDeviceService.Dispose() in C:\Users...\Desktop\MyLevelEditor\MyLevelEditor\MonoGameControls\MonoGameGraphicsDeviceService.cs:line 31
at MyLevelEditor.MonoGameControls.MonoGameContentControl.Dispose(Boolean disposing) in C:\Users...\Desktop\MyLevelEditor\MyLevelEditor\MonoGameControls\MonoGameContentControl.cs:line 85
at MyLevelEditor.MonoGameControls.MonoGameContentControl.Finalize() in C:\Users...\Desktop\MyLevelEditor\MyLevelEditor\MonoGameControls\MonoGameContentControl.cs:line 92

@limbusdev
Copy link

Same here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants