Home » U++ Library support » U++ Library : Other (not classified elsewhere) » A (maybe) bug in GLControl (on Ubuntu)
Re: A (maybe) bug in GLControl (on Ubuntu) [message #12198 is a reply to message #12162] |
Wed, 17 October 2007 19:05   |
 |
mirek
Messages: 14265 Registered: November 2005
|
Ultimate Member |
|
|
mdelfede wrote on Sun, 14 October 2007 16:26 | Following the example of making an app with more than one topwindow, i changed the Opengl example in reference like this :
GUI_APP_MAIN
{
MyAppWindow *win, *win2;
win = new MyAppWindow;
win2 = new MyAppWindow;
OpenGLExample gl, gl2;
gl.SetFrame(InsetFrame());
gl2.SetFrame(InsetFrame());
win->Add(gl.HSizePos(10, 10).VSizePos(10, 10));
win2->Add(gl2.HSizePos(10, 10).VSizePos(10, 10));
win->Sizeable().Zoomable();
win2->Sizeable().Zoomable();
win->OpenMain();
win2->OpenMain();
Ctrl::EventLoop();
}
That works, but hangs on window closing. It even hangs the debugger so I've to kill the process.
Investigating a bit more, I've seen that the destructor for GLControl NEVER get called.
|
Do you "delete" the window somewhere?
Mirek
|
|
|
Goto Forum:
Current Time: Mon Jul 07 21:03:19 CEST 2025
Total time taken to generate the page: 0.03685 seconds
|