You could try to setup an OpenGL window manually and use sceneview with it. I have used sceneView with an OpenGL window created by FOX, no need to call releaseAllGLObjects(), flushAllDeletedGLObjects() at all.

Yanling

On 5/28/06, 王 毅刚 <[EMAIL PROTECTED]> wrote:
Hi,All, I use rendersurface and sceneview to render a serial of models in
MFC, each by a dialog. It works fine. However, there always be some memory
leak in my program. When I close a dialog which renders a model, I found
that GL context can not be released.

In OnClose() function, I have use
m_SceneView->releaseAllGLObjects();
m_SceneView->flushAllDeletedGLObjects();

to release GL resource, However, there also be some memory leak in my
program. I find I can not use rendersurface->KillGLWindow(), because it is
protected. I doubt I have release resource such as _glcontext.

Does anybody has the same problem? Thanks for your reply.

Yigang

_________________________________________________________________
享用世界上最大的电子邮件系统― MSN Hotmail。  http://www.hotmail.com

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to