Hi Rémi,

This error is occuring in Producer's RenderSurface_Win32 code.  I have it on my list to clean up the windowing code in Producer over the ensuing months, but, unfortunately, that doesn't solve your problem right now.

The need for creation of the "temporary window" was an addition by Marco to add support for pbuffers, so perhaps he can provide a quicker patch to the problem for now. 

However, there may be something more fundamental with creating and deleting contexts on Windows, and this is simply showing up when the "temporary window" is being created.  This will take some vulcan mind-melding time to get the solution that is right and permanent. 

-don

On 10/9/06, Rémi Dugué <[EMAIL PROTECTED]> wrote:
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/


--

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/


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

Reply via email to