> > Okay this is about the tenth time i've had a crash with the same code.
> i've
> > added amny different bits of code and every now and then one will crash,
> > but not because of the code i added. when i debug it it sends me to this
> > code.
>
> My guess would be that the data you're sending the function is what's
> causing the crash. In GDB, it should also print the function call being
> made and where in your code it is: that's where I would look.
When I ran the MUD through Purify (a memory analysis package), it
showed that there was a free memory read in calling that function
after a mob had been killed. To fix, I saved the return code from
damage() and called this function only if the return value >= 0.
Grodyn
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 04/10/01 PDT