Hi,

I have run into the same problem with the application I'm working on. Since it 
seems to me that it was not corrected yet (or am I mistaken?), i'm writing 
here. I suggest that at least the static_cast is replaced with the dynamic_cast:


Code:
QtThreadPrivateData* pd = 
static_cast<QtThreadPrivateData*>(QThread::currentThread());



It helped in my case (everything seems to be working), and, if there is still 
some bug caused by the possibly returned null pointer, it will be at least more 
easily trackable.

Note that this can be reproduced if you use single-threaded rendering in the 
application's main thread. The main thread is created by Qt, not by 
OpenThreads, and is not an instance of QtThreadPrivateData.

Cheers,
Vitezslav

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=52021#52021





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to