Hi,
On Sun, 2009-03-15 at 01:32 +0800, Gerrit Voß wrote:
> Hi,
>
> On Sat, 2009-03-14 at 10:09 -0500, Allen Bierbaum wrote:
> > I am seeing a segfault because of a NULL pointer in State::addChunks.
> >
> > --------------------------
> > bool State::addChunk(StateChunk *chunk, Int32 index)
> > {
> > if(index > 0 && index > chunk->getClass()->getNumSlots())
> > {
> > SWARNING << "addChunk: index "
> > << index
> > << " > Numslots "
> > << chunk->getClass()->getNumSlots()
> > << ", ignored!"
> > << std::endl;
> > return true;
> > }
> >
> > UInt32 cindex = chunk->getClassId(); <--- This line
> > UInt32 csize = _mfChunks.size();
> >
> > const State *pThis = this;
> > --------------------------
> >
> > The arguments are:
> > chunk: NULL
> > index: -2
> >
> > Is it ever valid for addChunk to be called with a NULL chunk?
>
> yes, yet something looks strange, I'll have a look.
>
I re-added the NULL check until I remember why we took it out.
kind regards
gerrit
------------------------------------------------------------------------------
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
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users