[osg-users] Deleting osg::Image that is shallow copied

Pierre-Jean Petitprez pierre-jean.petitprez at inria.fr
Tue Aug 16 03:35:28 PDT 2016


Hi Sebastian,

> What do you mean by "reachable"? Deallocation doesn't mean the memory 
> is cleaned or something. So having a raw pointer to the deallocated 
> memory might give you the same data as long as no one is allocating 
> memory there.
>
I mean that after the first image is deleted, I still can use and 
perform operations on the data through the second image. To rewrite my 
question, I would like to know if data in an image is deallocated (and 
so it is not safe to perform operations on it through the second image) 
when it's shallow copied. I guess it is but I am not 100% sure.

Thank you,

Pierre-Jean
> Cheers
> Sebastian
>>
>> Thanks for enlightening me,
>>
>> Cheers,
>> Pierre-Jean
>>
>> ------------------
>> Read this topic online here:
>> http://forum.openscenegraph.org/viewtopic.php?p=68380#68380
>>
>>
>>
>>
>>
>> _______________________________________________
>> osg-users mailing list
>> osg-users at lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org 
>>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




More information about the osg-users mailing list