Hi, On Tuesday 10 March 2009 14:04:47 Geoff McLane wrote: > Also my WIN32 code has some protective code I _HAD_ to add > that does not allow triangles( int i1, int i2 ), and other shapes, > to be added if out of range of the _vertices.size()... windows > <vector> does a range check, and aborts the application if > out of range... maybe Mathias is addressing this... there are > lots of ongoing fast cvs changes in this area ;=)) > > --- > C:/FGCVS/SimGear/source/simgear/scene/model/BoundingVolumeBuildVisitor.hxx > Sun Mar 01 16:40:35 2009 +++ > Simgear/simgear/scene/model/BoundingVolumeBuildVisitor.hxx Sat Mar 07 > 15:32:58 2009 > @@ -303,14 +303,26 @@ > } > void addLine(unsigned i1, unsigned i2) > { > +#if defined(_MSC_VER) > + if(( i1 >= _vertices.size() )||( i2 >= _vertices.size() )) > + return; > +#endif > addLine(_vertices[i1], _vertices[i2]); > } > void addTriangle(unsigned i1, unsigned i2, unsigned i3) > { > +#if defined(_MSC_VER) > + if(( i1 >= _vertices.size() )||( i2 >= > _vertices.size() )||( i3 >= _vertices.size() )) > + return; > +#endif > addTriangle(_vertices[i1], _vertices[i2], _vertices[i3]); > } > void addQuad(unsigned i1, unsigned i2, unsigned i3, unsigned > i4) > { > +#if defined(_MSC_VER) > + if(( i1 >= _vertices.size() )||( i2 >= > _vertices.size() )||( i3 >= _vertices.size() )||( i4 >= > _vertices.size() )) > + return; > +#endif > addQuad(_vertices[i1], _vertices[i2], _vertices[i3], > _vertices[i4]); > } >
I cannot (yet?) reproduce such kind of problems. So: Can you provide me with a backtrace when this kind of code triggers. Especially the name of the model that is loaded when this happens would be interesting. Greetings and thanks Mathias ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel