ya...well...that was all screwed up... I meant if p temp worx, but p temp->next doesn't, p temp.next should >Nathan Davies, > >Good point, if p temp worx and p->next doesn't, maybe p.next will... > >how is temp declared, temp, or *temp... > >>Nathan Davies, >> >>since it IS a valid pointer to a memory address, you just are attempting to >>access it the wrong way. >> >>try doing a >>p *temp and send me (private mail) >>the output you get. >>you didn't do that. (it says its an obj_data ptr, but that's what its CAST >>as) >>i'm thinking you may be attempting an extract_obj() on a mob or character or >>something of the sort. >> >>Akuma the Raging Coder >> >>> >>>> > Well, the best I can offer is that you do not test for >>>> > the null condition of temp->next. Thus you are probably >>>> > seg faulting here. Try: >>>> > while (temp && temp->next && (temp->next != obj)) >>>> > >>>> > Not sure this is it, but its a good idea to always check >>>> > for the NULL condition anyway. >>> >>>I tried that as well. As soon as I try to access temp->next in ANY form, >>>the crash hits with a seg fault. :( >>> >>>John Evans <evansj@hi-line.net> >>> >>>May the source be with you. >> > +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/08/00 PST