On 9/12/10 19:23 , Sajjadul Islam wrote:
> The following code compiled but crashes while running.
> 
> osg::Image *image = new 
> osg::Image(*(_ProcessPass[out_tex]->getOutTexture()->getImage()),osg::CopyOp::DEEP_COPY_ALL);
> 
> Any logical wrong doing ?

Well...
_ProcessPass[out_tex] could be NULL
_ProcessPass[out_tex]->getOutTexture() could be NULL
_ProcessPass[out_tex]->getOutTexture()->getImage() could be NULL

As Robert mentioned a while ago, there is no osgMindReading NodeKit (yet?).

This is all most fundamental Programming and Debugging 101, and the use of a 
debugger
would've gone a long way already.

But I'd suspect that the osg::Image has been unref'd after it has been applied 
by the texture.

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

Reply via email to