puklaus's picture

GameWindow doesnt open/show

Hi.
I just downloaded newest svn-version of opentk, and it doenst open/show any GameWindow
windows (GLControl tests works fine).

Pressing ctrl+alt+del Examples.exe is in processes.
debug.log filesize is 0 so it doenst help.

Tried 0.9.9-2b on XP and linux, works fine, but on mac, it doenst open window.


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture

I do not have access to any macs, so this code has been bit-rotting for a while.

Try killing the Examples.exe process and check whether debug.log is still empty. If this doesn't work, try running the Examples project from MonoDevelop and attach the output from the "application output" window.

If this still doesn't work, try upgrading to MonoDevelop 2.2 beta 1. Even as a beta, I've found it much more stable than 2.0.

puklaus's picture

debug.log always empty, but heres output from VS output window:

Launching sample: "Simple Window"
 
A first chance exception of type 'System.DllNotFoundException' occurred in OpenTK.dll
Detected configuration: Windows / .Net
DisplayDevice 0 (primary) supports 173 resolutions.
Creating default GraphicsMode (32, 16, 0, 0, 0, 2, False).
Creating GraphicsContext.
    Creating GraphicsContext.
        Device context: 1040256277
        Selecting pixel format... GraphicsMode: Index: 2, Color: 32 (8888), Depth: 24, Stencil: 8, Samples: 0, Accum: 0 (0000), Buffers: 2, Stereo: False
        IWindowInfo: Windows.WindowInfo: Handle 854128, Parent (Windows.WindowInfo: Handle 1509698, Parent (null))
        GraphicsContextFlags: Default
        Requested version: 1.0
        Loaded opengl32.dll: 1590689792
        OpenGL will be bound to handle: 854128
        Setting pixel format... 2
        Creating temporary context for wgl extensions.
        Load extensions for OpenTK.Platform.Windows.Wgl... 60 extensions loaded in 16 ms.
        Load extensions for OpenTK.Platform.Windows.Wgl... 60 extensions loaded in 1 ms.
        Using WGL_ARB_create_context... success!
        success! (id: 131072)
    Selecting pixel format (ARB)... success!
    Disposing context 131072.
    Destroying window: Windows.WindowInfo: Handle 1509698, Parent (null)
    GraphicsMode: Index: 2, Color: 32 (8888), Depth: 24, Stencil: 8, Samples: 0, Accum: 0 (0000), Buffers: 2, Stereo: False
    IWindowInfo: Windows.WindowInfo: Handle 657444, Parent (Windows.WindowInfo: Handle 1181716, Parent (null))
    GraphicsContextFlags: Default
    Requested version: 1.0
    OpenGL will be bound to handle: 657444
    Setting pixel format... 2
    Using WGL_ARB_create_context... success!
    success! (id: 196608)
Load extensions for OpenTK.Platform.Windows.Wgl... 60 extensions loaded in 1 ms.
Load extensions for OpenTK.Graphics.OpenGL.GL... 1900 extensions loaded in 332 ms.
Window 1181716 title changed to ''.
Entering main loop.
The program '[1488] Examples.vshost.exe: Managed' has exited with code 0 (0x0).
puklaus's picture

Btw, I have this problem on XP but on linux it seems to work fine.

kanato's picture

Can you post output from running on Mac OS?

puklaus's picture

Sorry, I dont have mac, my friend far away tests my programs but he dont know anything about programming or ides so he cant give output logs or anything...

Well, now using 0.9.8-3.
Does svn-version work others xp/vista, or is it because of my drivers, graphics card, or something else?

Wondering if there are program that I could use friend's mac from my pc over net, so could test and debug otk and my programs..

the Fiddler's picture

This issue should be fixed in rev. 2284.

GameWindow.Run was missing a call to Visible = true.