I have just compiled OpenTK rc1 and GLWidget. Opensuse 11.2, mono 126.96.36.199 Monovevelop 2.2
I can run the test where GLWidget is in the main window and resize using code below
protected virtual void OnGlwidget1RenderFrame (object sender, System.EventArgs e)
int height = 0;
glwidget1.GdkWindow.GetSize(out width, out height);
GL.Viewport(0, 0, width, height);
However, when test program changed by adding a VBOX and placing GLwidget in that and running with Box Child Layout > Auto size set, then I get a segmentation error.
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
Changing Box Child Layout > Auto size false, Fill & Expand both true then no segmentation error.
So now we have a VBOX with the default 3 panels with a GLWidget in the middle panel set to Fill and Expand. So if I now add anything say a label into either of the other panels and run I get a segmentation fault. Remove and all ok again. So is there a problem with GLWidget or with mono? A way round this would be useful also.