Launching example: Examples.Tutorial.T01_Simple_Window
CoreGraphics reported 1 displays.
    Display 0 is at  1680x1050
    Supports 51 display modes.
    DisplayDevice 0 (primary) supports 51 resolutions.
        1680x1050x8@0Hz
        1680x1050x16@0Hz
        >> 1680x1050x32@0Hz <<
        1440x852x8@0Hz
        1440x852x16@0Hz
        1440x852x32@0Hz
        1440x852x8@0Hz
        1440x852x16@0Hz
        1440x852x32@0Hz
        1280x1024x8@0Hz
        1280x1024x16@0Hz
        1280x1024x32@0Hz
        1280x1024x8@0Hz
        1280x1024x16@0Hz
        1280x1024x32@0Hz
        1152x720x8@0Hz
        1152x720x16@0Hz
        1152x720x32@0Hz
        1024x768x8@0Hz
        1024x768x16@0Hz
        1024x768x32@0Hz
        1024x768x8@0Hz
        1024x768x16@0Hz
        1024x768x32@0Hz
        1024x640x8@0Hz
        1024x640x16@0Hz
        1024x640x32@0Hz
        1280x800x8@0Hz
        1280x800x16@0Hz
        1280x800x32@0Hz
        800x600x8@0Hz
        800x600x16@0Hz
        800x600x32@0Hz
        800x600x8@0Hz
        800x600x16@0Hz
        800x600x32@0Hz
        800x500x8@0Hz
        800x500x16@0Hz
        800x500x32@0Hz
        640x480x8@0Hz
        640x480x16@0Hz
        640x480x32@0Hz
        640x480x8@0Hz
        640x480x16@0Hz
        640x480x32@0Hz
        720x480x8@0Hz
        720x480x16@0Hz
        720x480x32@0Hz
        720x480x8@0Hz
        720x480x16@0Hz
        720x480x32@0Hz
Creating default GraphicsMode (32, 16, 0, 0, 0, 2, False).
Created dummy graphics mode.
Creating window...
    Created Window: 10167120
    Setting window title: 10167120,   CFstring : 10183088,  Text : OpenTK Window
    Content region was: Rect: [0, 0, 800, 600]
    Resizing window to: Rect: [0, 0, 800, 600]
    New content region size: Rect: [0, 0, 800, 600]
Created window.
Titlebar size: Rect: [0, -22, 800, 22]
Window: 10167120
Window Target: 10172848
Handler: 397674376
Num Events: 14
User Data: 10167120
Handler Ref: 0
Status: NoError
Attached window events.
Processing Event: Window WindowBoundsChanged event for MacOS.CarbonWindowInfo: Handle 10167120.
Creating GraphicsContext.
    GraphicsMode: Index: 1, Color: 32 (8888), Depth: 16, Stencil: False, Samples: 0, Accum: 0 (0000), Buffers: 2, Stereo: False
    IWindowInfo: MacOS.CarbonWindowInfo: Handle 10167120
OpenTK.Platform.MacOS.MacOSException: AGL Error: BadPixelFormat  invalid pixel format
  at OpenTK.Platform.MacOS.AglContext.MyAGLReportError () [0x00000] 
  at OpenTK.Platform.MacOS.AglContext.CreateContext (OpenTK.Graphics.GraphicsMode mode, OpenTK.Platform.MacOS.CarbonWindowInfo carbonWindow, IGraphicsContext shareContext) [0x00000] 
  at OpenTK.Platform.MacOS.AglContext..ctor (OpenTK.Graphics.GraphicsMode mode, IWindowInfo window, IGraphicsContext shareContext) [0x00000] 
  at OpenTK.Platform.MacOS.MacOSFactory.CreateGLContext (OpenTK.Graphics.GraphicsMode mode, IWindowInfo window, IGraphicsContext shareContext, Boolean DirectRendering) [0x00000] 
  at OpenTK.Platform.Factory.CreateGLContext (OpenTK.Graphics.GraphicsMode mode, IWindowInfo window, IGraphicsContext shareContext, Boolean directRendering) [0x00000] 
  at OpenTK.Graphics.GraphicsContext..ctor (OpenTK.Graphics.GraphicsMode mode, IWindowInfo window) [0x00000] 
  at OpenTK.Platform.MacOS.CarbonGLNative.CreateWindow (Int32 width, Int32 height, OpenTK.Graphics.GraphicsMode mode, IGraphicsContext& context) [0x00000] 
  at OpenTK.GameWindow..ctor (Int32 width, Int32 height, OpenTK.Graphics.GraphicsMode mode, System.String title, GameWindowFlags options, OpenTK.Graphics.DisplayDevice device) [0x00000] 
Disposing of CarbonGLNative window.
Disposing window 10167120.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
  at System.Collections.Generic.Dictionary`2[System.IntPtr,System.WeakReference].get_Item (IntPtr key) [0x00000] 
  at OpenTK.Platform.MacOS.CarbonGLNative.EventHandler (IntPtr inCaller, IntPtr inEvent, IntPtr userData) [0x00000] 
  at (wrapper native-to-managed) OpenTK.Platform.MacOS.CarbonGLNative:EventHandler (intptr,intptr,intptr)
  at (wrapper managed-to-native) OpenTK.Platform.MacOS.Carbon.API:DisposeWindow (intptr)
  at OpenTK.Platform.MacOS.CarbonWindowInfo.Dispose (Boolean disposing) [0x00000] 
  at OpenTK.Platform.MacOS.CarbonWindowInfo.Dispose () [0x00000] 
  at OpenTK.Platform.MacOS.CarbonGLNative.Dispose (Boolean disposing) [0x00000] 
  at OpenTK.Platform.MacOS.CarbonGLNative.Dispose () [0x00000] 
  at OpenTK.Platform.MacOS.CarbonGLNative.DestroyWindow () [0x00000] 
  at OpenTK.GameWindow..ctor (Int32 width, Int32 height, OpenTK.Graphics.GraphicsMode mode, System.String title, GameWindowFlags options, OpenTK.Graphics.DisplayDevice device) [0x00000] 
  at OpenTK.GameWindow..ctor (Int32 width, Int32 height) [0x00000] 
  at Examples.Tutorial.T01_Simple_Window..ctor () [0x00000] 
  at Examples.Tutorial.T01_Simple_Window.Main () [0x00000] 
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] 
  --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] 
  at Examples.ExampleLauncher.RunExample () [0x00000] 
