ref_ptr<> cleans things up for you autpmatically. As to what's wrong
with your particular app, I can't even guess at as there are just way
too many unknowns for me to guess at what you are doing wrong. I'm
afraid you best bet is to use a debugger.
On 6/19/06, gaurav dhingra <[EMAIL PROTECTED]> wrote:
I wrote a sample using wxwidgets and osg for loading osg data.I used
osg::ref_ptr for m_loadedmodel,m_sceneview,which are of type osg::node and
osgutil::sceneview.i am loading the file using the following code..
m_loadedModel = osgDB::readNodeFile(str);
//Set the defaults for the scene
m_sceneView->setDefaults();
//Set scene data as the returned m_group
m_sceneView->setSceneData(m_loadedModel.get());
after that i am using the following code for drawing the model
m_sceneView->update();
m_sceneView->cull();
m_sceneView->draw();
the model is being loaded successfully but as i exit from the application
the application crashes and it shows the file free.c.I think that all the
pointers are not being freed.how do i free the pointers? . And if there is
any another mistake which i am doing .plz explain.
Send instant messages to your online friends http://uk.messenger.yahoo.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/