Roman Grigoriev wrote on 2010-02-01: 
>     Transmittance_t->setImage(image_Transmittance);
>       delete[] data;

setImage() uses the data buffer you pass to it, so if you delete it right after 
calling setImage(), the Image will use a deallocated buffer!

Does it work if you specify USE_NEW_DELETE (so the Image will delete the buffer 
for you when it doesn't need it any more) and don't delete[] data?
--
Bryan Thrall
FlightSafety International
bryan.thr...@flightsafety.com
  


_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to