[osg-users] CompositeViewer and SingleThreaded crash on addView

2008-06-23 Thread amalric alexandre
Hi osg-users, I maybe found a bug on CompositeViewer::addView(osgViewer::View* view) in OSG 2.5.2. I have an application wich add and remove views on a compositeViewer embedded in MFC windows. When I try to add a new view it crashes. With debug information I've noticed that in addView function

Re: [osg-users] CompositeViewer and SingleThreaded crash on addView

2008-06-23 Thread Robert Osfield
HI Alex, I can't work out exactly what you mean w.r.t your setup. What threading model is the viewer set up as? W.r.t SingleThreaded not setting the _threadsRunning flag... well, if it's single threaded then no extra threads will be running, so the code is perfectly correct. Also if you report

Re: [osg-users] CompositeViewer and SingleThreaded crash on addView

2008-06-23 Thread amalric alexandre
Hi robert, My composite viewer is set as : m_rpCompoViewer = new osgViewer::CompositeViewer; m_rpCompoViewer-setThreadingModel(osgViewer::Viewer::SingleThreaded); I've found a osg message [osg-users] Adding Views to a Running CompositeViewer wich talks about the same problem as I have. I've

Re: [osg-users] CompositeViewer and SingleThreaded crash on addView

2008-06-23 Thread Robert Osfield
Hi Alex, What we might have to do is extended the addView method so it handles situations like your more seemlessly, i.e. do the realize etc, however, one has to be careful about this as often you'll add views well before you actually want them to realize. Perhaps the best thing would to some

Re: [osg-users] CompositeViewer and SingleThreaded crash on addView

2008-06-23 Thread Robert Osfield
Hi Alex, Thanks for the explanation. I'll reflect on this issue and hopefully come up with a solution for automatically doing realize on new windows. I won't be able to get to this right away though. Robert. On Mon, Jun 23, 2008 at 11:18 AM, amalric alexandre [EMAIL PROTECTED] wrote: In fact

Re: [osg-users] CompositeViewer and SingleThreaded crash on addView

2008-06-23 Thread amalric alexandre
Thank you Robert for your support, I forget to say that the problem is quite similar on run-time removing views. Kind regards, 2008/6/23 Robert Osfield [EMAIL PROTECTED]: Hi Alex, Thanks for the explanation. I'll reflect on this issue and hopefully come up with a solution for automatically