Just a guess,
are you mixing debug and release builds? (i.e. linking in the debug
build to release libraries)
I've encountered the strangest memory corruptions and crashes (due to
differently sized STL data structures) under windows however.
Since I'm not quite know the stl implementation you use, that is just a
guess.
hth
Sebastian
Hi,
...
linux qt4 osg2.8.4
I have use ViewerQT to integrate an osg application to a qt4 application witch
has other developer's none-osg application.
Then something strange happen,the ViewerQT seems disturb qt4 application's
shared memory ,which cause some memory crash however
not direct to my osg code but other developer's none-osg code.I removed
my osg code entirely,everything is OK,so I pretty sure it is related to my osg
code.
Then I remove every osg code but just loading an vpb generated .osga terrain
model,the shared memory disturbing issure return! Instead I load a commen .osga
model like cow.ive ,it is OK!
Thank you!
Cheers,
Lv
Code:
class CompositeViewerQT : public osgViewer::CompositeViewer, public
AdapterWidget
{
public:
CompositeViewerQT(QWidget * parent = 0, const char * name = 0, const QGLWidget
* shareWidget = 0, WindowFlags f = 0):
AdapterWidget( parent, name, shareWidget, f )
{
setThreadingModel(osgViewer::CompositeViewer::SingleThreaded);
setCameraManipulator(new osgGA::TrackballManipulator);
osg::ref_ptr<osg::Node> loadedModel= osgDB::readNodeFile("terrain.osga");
//vpb generated .osga model .error
osg::ref_ptr<osg::Node> loadedModel= osgDB::readNodeFile("cow.ive"); //OK
setSceneData(loadedModel.get());
connect(&_timer, SIGNAL(timeout()), this, SLOT(updateGL()));
_timer.start(10);
}
virtual void paintGL()
{
frame();
}
protected:
QTimer _timer;
};
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=38705#38705
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org