From: oioi <[EMAIL PROTECTED]> > /* > * After extract_char the ch is no longer valid! > */ > save_char_obj( ch ); > id = ch->id; > d = ch->desc; > d->host = str_dup(ch->pcdata->host); > extract_char( ch, TRUE ); --> if ( d != NULL ) > close_socket( d ); >
Look at the second last line - if ( d!= NULL ) - this line is there to assure you that you won't close a NULL descriptor, and is there for a reason. So what happens in the other line IF the descriptor is NULL? Yes, a crash (windows would say "Access violation. Read of address $FFFFFF"). You new code might have caused this to happen, add another line - if ( d != NULL ) right above the line that is crashing you, I think that might fix your problem. /Regicide

