Hi forest,

If you had implement cOSG class on your program, you should be careful about
destroying viewer and threads precedence. Sometimes it can be crash as you
experienced because when destroying threads process time need. In
osgviewerMFC project AfxMessageBox("Exit Rendering Thread"); message is
giving because of gaining this waiting time. So you can give some time this
operation to not crash.

HTH.
Best Regards.

Umit Uzun

2008/10/31 forest37 <[EMAIL PROTECTED]>

>  hi all,
>     There is a class "cOSG" in example osgviewerMFC,i find that a sentence
> " Sleep(1000);" is added to the
> function cOSG::~cOSG().Maybe it's used to avoid crash at delete mViewer.But
> Sometimes I still get a crash at delete mViewer.Is it because of the thread
> is not stoped?
>     How can i slove the problem?
>     Thanks for advance.
>
> forest
>
>
>
>
>
> ------------------------------
> 网易邮箱10周年,技术见证辉煌 <http://www.yeah.net>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to