[sldev] Why won't isAvatar() work?
Nicholaz Beresford
nicholaz at blueflash.cc
Thu Oct 4 04:52:17 PDT 2007
It depends on where you made your addition exactly. There
are various paths which could lead to bad objectp pointers
(especially outside the loop, since you say "at the end").
You will probably want to hook yourself into places where
they do the processUpdateCore() where it should be clear
that the pointer is valid because the source uses it.
Nick
Michael Miller wrote:
> At the end of the processObjectUpdate method(in llviewerobjectlist.cpp),
> I check to see if the object is an avatar(after everything in the
> "stock" source is done). The check looks like this:
>
> if(objectp && objectp->isAvatar()){
> // Do stuff here
> }
>
> The problem lies in the objectp->isAvatar(). I've run this through
> gdb(I'm on Mac OSX "non-10.4 platform"), and the isAvatar() method keeps
> throwing EXEC_BAD_ACCESS exceptions whenever the method is run(when
> calling isAvatar()). Is this because the objectp variable is "destroyed"
> or otherwise made inaccessible? How might I remedy this problem?
>
> Thanks,
> Mike
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Click here to unsubscribe or manage your list subscription:
> /index.html
More information about the SLDev
mailing list