Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample SingleContext does not work #125

Open
stefslon opened this issue Feb 6, 2019 · 0 comments
Open

Sample SingleContext does not work #125

stefslon opened this issue Feb 6, 2019 · 0 comments

Comments

@stefslon
Copy link

stefslon commented Feb 6, 2019

I get an invalid exception when trying to run provided SingleContext sample. I am running Visual Studio 2017 Community on Windows 7.

Here is the stack trace I get:
************** Exception Text ************** System.InvalidOperationException: no GlControl sharing with MainContext at OpenGL.GlControl.ReuseOtherContext() in ...\OpenGL.Net-master\OpenGL.Net.WinForms\GlControl.cs:line 917 at OpenGL.GlControl.CreateContext() in ...\OpenGL.Net-master\OpenGL.Net.WinForms\GlControl.cs:line 749 at OpenGL.GlControl.OnHandleCreated(EventArgs e) in ...\OpenGL.Net-master\OpenGL.Net.WinForms\GlControl.cs:line 1196 at System.Windows.Forms.Control.WmCreate(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.UserControl.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)

Looking at the GlControl it seems that there is no code to actually add entries to _SharingControls property.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant