Hi,
Has anyone experienced this problem, or know what might cause it?
The following fragment of code crashes at the last line (mwin->init()) on
Windows with OpenSG 1.8 (snapshot from Sep 28 2008).
int main( int argc, char *argv[] )
> {
> // this must be called (before osgInit!) to use multi-threading /
> clustering
> OSG::ChangeList::setReadWriteDefault();
>
> // initialize OpenSG
> OSG::osgInit( argc, argv );
>
> OSG::MultiDisplayWindowPtr mwin = OSG::MultiDisplayWindow::create();
> {
> OSG::CPEditor guard( mwin );
> mwin->setConnectionType( "Multicast" );
> mwin->getServers().push_back( "sage" );
> mwin->setSize( 300, 300 );
> }
>
> OSG::NodePtr scene = OSG::makeTorus( .5, 2, 16, 16 );
>
> // create the SimpleSceneManager helper
> OSG::SimpleSceneManager* mgr = new OSG::SimpleSceneManager;
>
> // tell the manager what to manage
> mgr->setWindow( mwin );
> mgr->setRoot( scene );
>
> // show the whole scene
> mgr->showAll();
>
> // initialize window
> mwin->init();
>
More specifically, it crashes (segfault) at the call to ::closesocket(_sd);
after the ClusterWindow has found the address of the first cluster server.
osgclusterwindow.cpp line 421 (serviceSock.close()).
The tutorial applications (clusterserver/client) work fine, but my simple
test application fails after the few lines above.
It works on Linux, but fails on multiple Windows machines. Has anyone seen
this before?
Thanks!
Thiago
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users