Posted 13 February 2019 - 02:01 PM
I've had the same problem with the more recent versions of Monogame. Here is the message that I get:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
SharpDX.SharpDXException: HRESULT: [0x887A0001], Module: [SharpDX.DXGI], ApiCode: [DXGI_ERROR_INVALID_CALL/InvalidCall], Message: Unknown
at SharpDX.Result.CheckError()
at SharpDX.DXGI.SwapChain.ResizeBuffers(Int32 bufferCount, Int32 width, Int32 height, Format newFormat, SwapChainFlags swapChainFlags)
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.CreateSizeDependentResources()
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.Reset()
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.Reset(PresentationParameters presentationParameters)
at Microsoft.Xna.Framework.GraphicsDeviceManager.ApplyChanges()
at MonoGame.Framework.WinFormsGameWindow.UpdateBackBufferSize()
at MonoGame.Framework.WinFormsGameWindow.OnResize(Object sender, EventArgs eventArgs)
at System.Windows.Forms.Control.OnResize(EventArgs e)
at System.Windows.Forms.Form.OnResize(EventArgs e)
at System.Windows.Forms.Control.OnSizeChanged(EventArgs e)
at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
at System.Windows.Forms.Control.UpdateBounds()
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at Microsoft.Xna.Framework.Windows.WinFormsGameForm.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3260.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Contrib.TrackViewer
Assembly Version: 0.0.6979.31089
Win32 Version: 0.0.6979.31089
CodeBase: file:///C:/OR_NewYear_MG/Contrib.TrackViewer.exe
----------------------------------------
MonoGame.Framework
Assembly Version: 0.0.0.0
Win32 Version: 0.0.0.0
CodeBase: file:///C:/OR_NewYear_MG/MonoGame.Framework.DLL
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3221.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3314.0 built by: NET472REL1LAST_B
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3221.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
GNU.Gettext
Assembly Version: 1.1.5151.39896
Win32 Version: 1.0.0.0
CodeBase: file:///C:/OR_NewYear_MG/GNU.Gettext.DLL
----------------------------------------
ORTS.Common
Assembly Version: 0.0.6978.40957
Win32 Version: 0.0.6978.40957
CodeBase: file:///C:/OR_NewYear_MG/ORTS.Common.DLL
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3062.0 built by: NET472REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3221.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3221.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
PresentationCore
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3221.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/PresentationCore/v4.0_4.0.0.0__31bf3856ad364e35/PresentationCore.dll
----------------------------------------
WindowsBase
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3221.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll
----------------------------------------
SharpDX
Assembly Version: 4.0.1.0
Win32 Version: 4.0.1
CodeBase: file:///C:/OR_NewYear_MG/SharpDX.DLL
----------------------------------------
System.Runtime
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3062.0
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Runtime.dll
----------------------------------------
SharpDX.XAudio2
Assembly Version: 4.0.1.0
Win32 Version: 4.0.1
CodeBase: file:///C:/OR_NewYear_MG/SharpDX.XAudio2.DLL
----------------------------------------
System.Threading
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3062.0
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Threading/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Threading.dll
----------------------------------------
System.Collections
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3062.0
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Collections/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Collections.dll
----------------------------------------
System.Runtime.InteropServices
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3062.0
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.InteropServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Runtime.InteropServices.dll
----------------------------------------
SharpDX.DXGI
Assembly Version: 4.0.1.0
Win32 Version: 4.0.1
CodeBase: file:///C:/OR_NewYear_MG/SharpDX.DXGI.DLL
----------------------------------------
System.Reflection
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3062.0
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Reflection/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Reflection.dll
----------------------------------------
SharpDX.Direct3D11
Assembly Version: 4.0.1.0
Win32 Version: 4.0.1
CodeBase: file:///C:/OR_NewYear_MG/SharpDX.Direct3D11.DLL
----------------------------------------
PresentationFramework
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3221.0
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.dll
----------------------------------------
System.Xaml
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3221.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xaml/v4.0_4.0.0.0__b77a5c561934e089/System.Xaml.dll
----------------------------------------
ORTS.Menu
Assembly Version: 0.0.6978.40967
Win32 Version: 0.0.6978.40967
CodeBase: file:///C:/OR_NewYear_MG/ORTS.Menu.DLL
----------------------------------------
ORTS.Content
Assembly Version: 0.0.6978.40957
Win32 Version: 0.0.6978.40957
CodeBase: file:///C:/OR_NewYear_MG/ORTS.Content.DLL
----------------------------------------
ORTS.Settings
Assembly Version: 0.0.6978.40958
Win32 Version: 0.0.6978.40958
CodeBase: file:///C:/OR_NewYear_MG/ORTS.Settings.DLL
----------------------------------------
WindowsFormsIntegration
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3062.0 built by: NET472REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/WindowsFormsIntegration/v4.0_4.0.0.0__31bf3856ad364e35/WindowsFormsIntegration.dll
----------------------------------------
PresentationFramework.Aero
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3062.0 built by: NET472REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework.Aero/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.Aero.dll
----------------------------------------
Microsoft.GeneratedCode
Assembly Version: 1.0.0.0
Win32 Version: 4.7.3221.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
PresentationFramework-SystemXml
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3062.0
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework-SystemXml/v4.0_4.0.0.0__b77a5c561934e089/PresentationFramework-SystemXml.dll
----------------------------------------
UIAutomationTypes
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3221.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/UIAutomationTypes/v4.0_4.0.0.0__31bf3856ad364e35/UIAutomationTypes.dll
----------------------------------------
RunActivity
Assembly Version: 0.0.6979.39920
Win32 Version: 0.0.6979.39920
CodeBase: file:///C:/OR_NewYear_MG/RunActivity.EXE
----------------------------------------
Orts.Simulation
Assembly Version: 0.0.6978.40962
Win32 Version: 0.0.6978.40962
CodeBase: file:///C:/OR_NewYear_MG/Orts.Simulation.DLL
----------------------------------------
Orts.Formats.Msts
Assembly Version: 0.0.6978.40959
Win32 Version: 0.0.6978.40959
CodeBase: file:///C:/OR_NewYear_MG/Orts.Formats.Msts.DLL
----------------------------------------
Orts.Parsers.Msts
Assembly Version: 0.0.6978.40957
Win32 Version: 0.0.6978.40957
CodeBase: file:///C:/OR_NewYear_MG/Orts.Parsers.Msts.DLL
----------------------------------------
System.IO
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3062.0
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.IO/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.IO.dll
----------------------------------------
System.Globalization
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3062.0
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Globalization/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Globalization.dll
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
Pressing "continue" in this message box just brings up TrackViewer with a black box. I hope this info helps. Thanks--by the way, Monogame is pretty much great otherwise.