Re: HTAnchor_delete ?

Anton,
I had the same problem. I think it is a bug.
This is the code I have added at line 511 in HTAnchor_delete (HTParentAnchor
* me):

    if (adult_table) {
    	int hash;
	const char *p;
	HTList * adults;
	HTList *grownups;
	HTList * last;
	HTParentAnchor * foundAnchor;

	/* Select list from hash table */
	for(p=me->address, hash=0; *p; p++)
	    hash = (int) ((hash * 3 + (*(unsigned char*)p)) %
PARENT_HASH_SIZE);
	adults = adult_table[hash];

	/* Search list for anchor */
	grownups = adults;
	last = grownups;
	while ((foundAnchor = (HTParentAnchor *)
HTList_nextObject(grownups))){
	  if (!strcmp(foundAnchor->address, me->address)) {
	    HTList_quickRemoveElement (grownups, last);
	    break;
	  }
	  last = grownups;
	}
    }

Regards,
--
Serge Adda
Server Development Manager
InfoVista S.A.                  http://www.infovista.com
6, rue de la Terre de Feu 
91952 Courtaboeuf Cedex 
Tel: (+33) 1 64 86 79 37 
Fax:(+33) 1 64 86 79 79 

Received on Monday, 5 March 2001 11:45:30 UTC