removeImageLayer causes a crash

classic Classic list List threaded Threaded
2 messages Options
adrianj adrianj
Reply | Threaded
Open this post in threaded view
|

removeImageLayer causes a crash

Hello,

I am trying to use removeImageLayer() but my application keep on crashing in Debug mode. I read on a previous post that osg is not thread safe and I should not be calling this function from a different thread. Can anyone give me an example of how I post a message to my thread so I can perform my action? Do I use osg::Operation? or is there a newer better way?

Many thanks for your help!!

Adrian
Andreas Roth Andreas Roth
Reply | Threaded
Open this post in threaded view
|

Re: removeImageLayer causes a crash

Either use an osg::Operation or call removeImageLayer during the update or event traversal.