Re: [ Code ] Again... I still ahev problems with free() and NULL pointers

From: Sammy (samedi@DHC.NET)
Date: 08/04/97


On Mon, 4 Aug 1997, David Klasinc wrote:

> void check_fall(void)
> {
>   int fall_dmg;
>   struct char_data *ch, *next_ch;
>   for (ch = character_list; ch; ch = next_ch) {
>     next_ch = ch->next;
>
>   if (ROOM_AFFECTED(IN_ROOM(ch), RAFF_ACID_RAIN))
>     gen_damage(ch, GET_MAX_HIT(ch) * 10 / 100, SPELL_ACID_RAIN);
<snip>

It'd help to know what line it's crashing on (the first thing it shows you
when you load up gdb).

You can probably findd your problem pretty easily by putting a breakpoint
on check_fall (gdb> break check_fall) and using step to see what's
happening.

Sam


     +------------------------------------------------------------+
     | 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