Hi Alexandre,

I've just fixed the problem and checked it in.  Could you try out the
svn version of the OSG.

Thanks,
Robert.

On Wed, Jan 7, 2009 at 2:10 PM, Alexandre Amalric <[email protected]> wrote:
> Hi Robert,
>
> here is the modified example.
>
> 2009/1/7 Robert Osfield <[email protected]>
>>
>> HI Alexandre,
>>
>> Could you post the modified example in the form that reproduces the crash.
>>
>> Thanks,
>> Robert.
>>
>> On Wed, Jan 7, 2009 at 1:52 PM, Alexandre Amalric <[email protected]>
>> wrote:
>> > Hi osg-users and Happy New Year to all of you :-)
>> >
>> > I recently downloaded OSG 2.7.8 to link with my application (wich was
>> > linked
>> > before with OSG 2.7.4) and I discovered a bug wich can be easily
>> > produced by
>> > modifying osgcompositeviewer.cpp in Examples osgcompositeviewer.
>> >
>> > At line 236 :
>> >
>> > osgViewer::View* view = new osgViewer::View;
>> > viewer.addView(view);
>> >
>> > view->setSceneData(scene.get());
>> >
>> > replace by swapping 2 lines (setting scene data before adding new view)
>> > :
>> >
>> > osgViewer::View* view = new osgViewer::View;
>> >
>> > view->setSceneData(scene.get());
>> > viewer.addView(view);
>> >
>> > Be sure to run the example to call this code section...
>> >
>> > It crashes in osgViewer::View::setSceneData when calling
>> >
>> > getViewerBase()->getThreadingModel()
>> >
>> > because viewerbase is NULL
>> >
>> > With older version 2.7.4 it works, apparently not with new 2.7.8.
>> >
>> > I need my application to stay the same, setting data scene before adding
>> > new
>> > view to the composite viewer, if you have any tips to do this let me
>> > hear.
>> >
>> > --
>> > Alexandre AMALRIC                   Ingénieur R&D
>> > ===================================
>> > PIXXIM S.A. 73E, rue Perrin-Solliers 13006 Marseille
>> > http://www.pixxim.fr
>> >
>> > _______________________________________________
>> > 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
>
>
>
> --
> Alexandre AMALRIC                   Ingénieur R&D
> ===================================
> PIXXIM S.A. 73E, rue Perrin-Solliers 13006 Marseille
> http://www.pixxim.fr
>
> _______________________________________________
> 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