It appears Microsoft has started the public beta for Visual Studio 2010 and .NET Framework 4.
.Net Framework 4
Feel free to add more links, this is just what I came across so far and appeared relevant.
There's no offline documentation in beta 1, but I think this will be fixed in beta 2. They've also gotten rid of the chm help browser, in favour of regular html that opens in your default web browser (and there was much rejoicing!)
Beta 1 is still a bit rough around the edges: WPF text rendering is awful (will be fixed in beta 2), loading speed is awful (working on this), the language services manage to hang the IDE occasionally (VS2008 suffered from this too). On the other hand GL.cs is actually usable now, as long as you wait for the language service to settle, and F# is pretty nice.
Preparing a blog post with my impressions so far.
Been (trying) to use this for a couple of weeks now.
Not enjoying it much. How are others getting on?
I've had sporadic issues with OpenTK with it, for some reason it seems to fail at the "Using WGL_ARB_create_context... success!" line, throwing an exception (I forget exactly what).
The error doesn't make much sense, left the code for 5 minutes, come back and it's worked before. Restarting VS seems to always fix it, but it's a pretty unusual issue.
Had a point where I literally typed
case Key.Escape :
Immediately got a "syntax error" little green squiggle, which I thought was odd, hit compile and got told I was trying to drop through a case 49 :.
I'd literally just typed that code out, no copy and paste, no other switch statements anywhere else in the code. Deleting it and retyping it fixed it. Most odd.
Overall the application just feels very, very sluggish. I seem to type about twice as fast as it can respond. The auto-completion is also much slower than 2k8, which brings me onto my next point.
Not sure what just caused it but I typed GL.DrawArrays( and it locked for 3 minutes. I put BeginMode.Triangles, when it came back and on typing the , it just stopped completely. :o/
Hopefully these are just because it's a beta, although the exception involving the context creation is odd. I'll copy the exception next time I get it, although as I say, it's not predictable and happens with code that works perfectly well and runs without changes after closing/opening.
Wondering if anyone else is having issues with it?
Should probably send these to Microsoft.
Edit: Should probably add that I'm using it under Windows 7 RC. I've got VC# 2k8 express installed alongside (the context creation issue happened before I installed it and indeed was the reason I installed it, since I was sure it wasn't my code or OpenTK causing the issue) and not seen any of the problems in that.
Haha. Moments later I get it:
Detected configuration: Windows / .Net
DisplayDevice 0 (primary) supports 180 resolutions.
Creating default GraphicsMode (32, 16, 0, 0, 0, 2, False).
Device context: 67185872
Selecting pixel format... Native window driver: OpenTK.Platform.Windows.WinGLNative
Creating native window.
Found joystick on device number 0
Initalizing WMInput driver.
Input window attached to parent Windows.WindowInfo: Handle 14091116, Parent (null)
Window created: Windows.WindowInfo: Handle 14091116, Parent (null)
Window creation succesful.
GraphicsMode: Index: 8, Color: 32 (8888), Depth: 24, Stencil: False, Samples: 0, Accum: 64 (16161616), Buffers: 2, Stereo: False
IWindowInfo: Windows.WindowInfo: Handle 14091116, Parent (null)
Loaded opengl32.dll: 1899692032
OpenGL will be bound to handle: 14091116
Setting pixel format... 8
Creating temporary context for wgl extensions.
Load extensions for OpenTK.Platform.Windows.Wgl... 50 extensions loaded in 14 ms.
Using WGL_ARB_create_context... A first chance exception of type 'System.AccessViolationException' occurred in OpenTK.dll
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 C:\Users\StApostol\Documents\Visual Studio 2008\Projects\opentk\releases\opentk-0.9.8\Source\OpenTK\Platform\Windows\Bindings\Wgl.cs:line 551
at OpenTK.Platform.Windows.WinGLContext..ctor(GraphicsMode format, IWindowInfo window, IGraphicsContext sharedContext, Int32 major, Int32 minor, GraphicsContextFlags flags) in C:\Users\StApostol\Documents\Visual Studio 2008\Projects\opentk\releases\opentk-0.9.8\Source\OpenTK\Platform\Windows\WinGLContext.cs:line 104
at OpenTK.Platform.Windows.WinFactory.CreateGLContext(GraphicsMode mode, IWindowInfo window, IGraphicsContext shareContext, Boolean directRendering, Int32 major, Int32 minor, GraphicsContextFlags flags) in C:\Users\StApostol\Documents\Visual Studio 2008\Projects\opentk\releases\opentk-0.9.8\Source\OpenTK\Platform\Windows\WinFactory.cs:line 31
at OpenTK.Platform.Factory.CreateGLContext(GraphicsMode mode, IWindowInfo window, IGraphicsContext shareContext, Boolean directRendering, Int32 major, Int32 minor, GraphicsContextFlags flags) in C:\Users\StApostol\Documents\Visual Studio 2008\Projects\opentk\releases\opentk-0.9.8\Source\OpenTK\Platform\Factory.cs:line 38
at OpenTK.Graphics.GraphicsContext..ctor(GraphicsMode mode, IWindowInfo window, Int32 major, Int32 minor, GraphicsContextFlags flags) in C:\Users\StApostol\Documents\Visual Studio 2008\Projects\opentk\releases\opentk-0.9.8\Source\OpenTK\Graphics\GraphicsContext.cs:line 119
at OpenTK.Platform.Windows.WinGLNative.CreateWindow(Int32 width, Int32 height, GraphicsMode mode, Int32 major, Int32 minor, GraphicsContextFlags flags, IGraphicsContext& context) in C:\Users\StApostol\Documents\Visual Studio 2008\Projects\opentk\releases\opentk-0.9.8\Source\OpenTK\Platform\Windows\WinGLNative.cs:line 373
at OpenTK.GameWindow..ctor(Int32 width, Int32 height, GraphicsMode mode, String title, GameWindowFlags options, DisplayDevice device, Int32 major, Int32 minor, GraphicsContextFlags flags) in C:\Users\StApostol\Documents\Visual Studio 2008\Projects\opentk\releases\opentk-0.9.8\Source\OpenTK\GameWindow.cs:line 184
Destroying window: Windows.WindowInfo: Handle 14091116, Parent (null)
Input window detached from parent 14091116.
A first chance exception of type 'System.AccessViolationException' occurred in OpenTK.dll
An unhandled exception of type 'System.AccessViolationException' occurred in OpenTK.dll
It occurs when GameWindow's constructor is called. I'm just using base(800, 600) .
Just tried changing that and it's all working again, even when I change it back. No idea why it's happening.
This exception is a known issue: #946: [GameWindow] GameWindow constructor may throw AccessViolationException
Seems to be linked with nvidia drivers.
Site design by Stefanos A. Icons courtesy of gnome-colors.