Hi Matthias, On 19/09/11 17:08 , [email protected] wrote: > My goal is to use the osgFX node kit to write a customized Effect. Therefore, > I looked > into the predefined osgFX::Cartoon Effect, copied it into my project, renamed > it into > MyCartoon and tried to adapt the code to my needs. In order to debug a > program crash, I > reduced the original osgFX::Cartoon Effect code to the following core: >... > When my application executes and the render process starts, the program > crashes with a > heap damage error, when it returns from > osg::Technique::validate(osg::State&). Therein, > a local String_list is used to hold and traverse the extension strings and it > is > attempted to be destroyed at the end of the function block. The last entries > in my call > stack are in the std::basic_string<> template class and refer to the > destruction of the > extension string "GL_ARB_vertex_program". > > If I don't push entries in my getRequiredExtensions() method, the program > continues > without a crash. I also overwrote osg::Technique::validate() in my > DefaultTechnique and > used *exactly* the code from the base class and it worked fine. But if I call > the base > class method directly, it crashes again, when destroying the first extension > string in > the list. I can't figure out, why the strings are freed improperly and why > there is > such a different behaviour, when I overwrite osg::Technique::validate().
you mentioned that you're debugging an other problem. Is it possible that you're mixing debug and release binaries? E.g. debug build of your project with OSG release libraries? Just because crashes when modifying STL containers raises a red flag... Cheers, /ulrich _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

