Hi,

I've tried to kill and relaunch the viewers by doing this.
I successfully kill the viewers, but I can't relaunch it.
I have this error message : "Producer::WGLExtensions: could not make the temporary window's context active"
And so, it's crash.

To close, I do this :

//_viewers = std::vector<osgProducer::Viewer>
for(int i=0 ; i<_viewers.size() ; i++)
{
        _viewers[i]->setDone(true);
        _viewers[i]->sync();
        _viewers[i]->cleanup_frame();
        _viewers[i]->sync();
        _viewers[i]->unref();
}
_viewers.clear();


Any idea ?
Could it be a thread problem ?

Thanks,
Rémi.


Robert Osfield a écrit :
Hi Rémi,

This week I checked in some fixes to the clean up of graphics context in osgProducer::Viewer and osgText, these fixed errors rather crashes, but it might help.

Another important thing to do is do to a viewer.cleanup_frame() after you have exited the viewers main loop, but before you close it completely.  The osgviewer example shows how to do this.

Robert.

On 10/5/06, Rémi Dugué <[EMAIL PROTECTED]> wrote:
Hi,

I need to change some parameters, like Anti-aliasing, of my
osgProducer::Viewer.
To do it, I think I have to kill and relaunch the osgProducer::Viewer.
I kill successfully the Viewer, but I can't relaunch it, because of a
crash when the Viewer do its frame().

If someone have any idea...

Thanks,
Rémi.
_______________________________________________
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/


--
RD
Rémi DUGUE
Développeur
SCANeR(c)II

website: www.scaner2.com

Tel : (+33) 1 46 94 98 24
Fax : (+33) 1 41 41 91 44
[EMAIL PROTECTED]


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to