
Debug mode not playing friendly, perhaps a driver issue? [please?]
Posted Saturday, 13 August, 2011 - 14:31 by AmzBee inHi everyone, I just realised today when switching back to debug mode that my engine would no longer boot. Recently I upgraded the graphics driver for
my Nvidia 9600 GT to the most recent 280.26 release in Windows 7 64bit. Looking at the output it seems the arb context creation seems to be failing somewhere along the line. I've checked to see It's not just some error I've made in the engine by downloading the latest OpenTK build, and also testing to see if I could get one of the examples to work instead, unfortunately It gave me the same outcome.
Something to note, In the example I noticed that 'Allow unsafe code' was un-ticked in the project properties, so ticked it and ran the example again, it actually booted weirdly once, then subsequent times it came out with the output below again. Also I may as well mention that everything works fine in release mode.
Thanks for any help. Aimee.
'Examples.vshost.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'Examples.vshost.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'Examples.vshost.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'Examples.vshost.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'Examples.vshost.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'Examples.vshost.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities.Sync\10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'Examples.vshost.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.Debugger.Runtime\10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Debugger.Runtime.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'Examples.vshost.exe' (Managed (v2.0.50727)): Loaded 'G:\Examples\CSharp\WinForms\Examples\Examples\bin\Debug\Examples.vshost.exe', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. The thread 'vshost.NotifyLoad' (0x16bc) has exited with code 0 (0x0). The thread 'vshost.LoadReference' (0x171c) has exited with code 0 (0x0). 'Examples.vshost.exe' (Managed (v2.0.50727)): Loaded 'G:\Examples\CSharp\WinForms\Examples\Examples\bin\Debug\Examples.exe', Symbols loaded. 'Examples.vshost.exe' (Managed (v2.0.50727)): Loaded 'G:\Examples\CSharp\WinForms\Examples\Examples\bin\Debug\OpenTK.dll', Symbols loaded. A first chance exception of type 'System.DllNotFoundException' occurred in OpenTK.dll A first chance exception of type 'System.TypeInitializationException' occurred in OpenTK.dll 'Examples.vshost.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'Examples.vshost.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Detected configuration: Windows / .Net A first chance exception of type 'System.DllNotFoundException' occurred in OpenTK.dll DisplayDevice 1 (primary) supports 135 resolutions. Creating default GraphicsMode (32, 16, 0, 0, 0, 2, False). Creating GraphicsContext. Creating GraphicsContext. Device context: -1644095096 Selecting pixel format... GraphicsMode: Index: 11, Color: 24 (8880), Depth: 0, Stencil: 0, Samples: 0, Accum: 64 (16161616), Buffers: 2, Stereo: False IWindowInfo: Windows.WindowInfo: Handle 724672, Parent (Windows.WindowInfo: Handle 724638, Parent (null)) GraphicsContextFlags: Default Requested version: 1.0 Loaded opengl32.dll: 419430400 OpenGL will be bound to handle: 724672 Setting pixel format... 11 Creating temporary context for wgl extensions. Load extensions for OpenTK.Platform.Windows.Wgl... 50 extensions loaded in 10 ms. Load extensions for OpenTK.Platform.Windows.Wgl... 50 extensions loaded in 1 ms. Using WGL_ARB_create_context... A first chance exception of type 'System.AccessViolationException' occurred in OpenTK.dll Destroying window: Windows.WindowInfo: Handle 724638, Parent (null) System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at OpenTK.Platform.Windows.Wgl.Delegates.CreateContextAttribsARB.Invoke(IntPtr hDC, IntPtr hShareContext, Int32* attribList) at OpenTK.Platform.Windows.Wgl.Arb.CreateContextAttribs(IntPtr hDC, IntPtr hShareContext, Int32[] attribList) in E:\Libs\OpenTK\1.0-2010-10-06\Source\OpenTK\Platform\Windows\Bindings\Wgl.cs:line 551 at OpenTK.Platform.Windows.WinGLContext..ctor(GraphicsMode format, WinWindowInfo window, IGraphicsContext sharedContext, Int32 major, Int32 minor, GraphicsContextFlags flags) in E:\Libs\OpenTK\1.0-2010-10-06\Source\OpenTK\Platform\Windows\WinGLContext.cs:line 113 at OpenTK.Platform.Windows.WinFactory.CreateGLContext(GraphicsMode mode, IWindowInfo window, IGraphicsContext shareContext, Boolean directRendering, Int32 major, Int32 minor, GraphicsContextFlags flags) in E:\Libs\OpenTK\1.0-2010-10-06\Source\OpenTK\Platform\Windows\WinFactory.cs:line 53 at OpenTK.Graphics.GraphicsContext..ctor(GraphicsMode mode, IWindowInfo window, Int32 major, Int32 minor, GraphicsContextFlags flags) in E:\Libs\OpenTK\1.0-2010-10-06\Source\OpenTK\Graphics\GraphicsContext.cs:line 115 at OpenTK.Platform.Windows.WinGraphicsMode.SelectGraphicsModeARB(ColorFormat color, Int32 depth, Int32 stencil, Int32 samples, ColorFormat accum, Int32 buffers, Boolean stereo) in E:\Libs\OpenTK\1.0-2010-10-06\Source\OpenTK\Platform\Windows\WinGraphicsMode.cs:line 158 at OpenTK.Platform.Windows.WinGraphicsMode.SelectGraphicsMode(ColorFormat color, Int32 depth, Int32 stencil, Int32 samples, ColorFormat accum, Int32 buffers, Boolean stereo) in E:\Libs\OpenTK\1.0-2010-10-06\Source\OpenTK\Platform\Windows\WinGraphicsMode.cs:line 70 at OpenTK.Graphics.GraphicsMode.LazySelectGraphicsMode() in E:\Libs\OpenTK\1.0-2010-10-06\Source\OpenTK\Graphics\GraphicsMode.cs:line 346 at OpenTK.Graphics.GraphicsMode.get_Index() in E:\Libs\OpenTK\1.0-2010-10-06\Source\OpenTK\Graphics\GraphicsMode.cs:line 183 at OpenTK.Graphics.GraphicsMode.ToString() in E:\Libs\OpenTK\1.0-2010-10-06\Source\OpenTK\Graphics\GraphicsMode.cs:line 367 at System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args) at System.String.Format(IFormatProvider provider, String format, Object[] args) at System.Diagnostics.Debug.Print(String format, Object[] args) at OpenTK.Graphics.GraphicsContext..ctor(GraphicsMode mode, IWindowInfo window, Int32 major, Int32 minor, GraphicsContextFlags flags) in E:\Libs\OpenTK\1.0-2010-10-06\Source\OpenTK\Graphics\GraphicsContext.cs:line 94 at OpenTK.GameWindow..ctor(Int32 width, Int32 height, GraphicsMode mode, String title, GameWindowFlags options, DisplayDevice device, Int32 major, Int32 minor, GraphicsContextFlags flags, IGraphicsContext sharedContext) in E:\Libs\OpenTK\1.0-2010-10-06\Source\OpenTK\GameWindow.cs:line 206 Destroying window: Windows.WindowInfo: Handle 921272, Parent (null) A first chance exception of type 'System.AccessViolationException' occurred in OpenTK.dll

