W3C home > Mailing lists > Public > www-lib@w3.org > January to March 2001

HTAnchor_delete ?

From: Anton Belov -- Customer Engineering <antonb@scot.canada.sun.com>
Date: Fri, 2 Mar 2001 12:40:44 -0500 (EST)
Message-Id: <200103021740.MAA22418@rayo.canada.sun.com>
To: www-lib@w3.org
Hi !

For some reason HTAnchor_delete doesn't remove the reference to the deleted 
anchor from the adult_table[] hash table, so if i happen to request another 
anchor for the same URL, the hash table contains a pointer to the anchor that 
already has been deleted, which in term causes exception:

HTAnchor * anch = HTAnchor_findAddress("http://something/something");
HTAnchor_detele(HTAnchor_parent(anch));
anch = HTAnchor_findAddress("http://something/something"); <-- SIGSEGV here !!!!

Is this a bug, or am i missing something ?

Thank you for your help !!!!

Best Regards,
Anton

~v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^vv^v^v^v^v^v^v^v^v^v^v^~

Anton Belov
Sun Microsystems Americas Customer Engineering
anton.belov@canada.sun.com
Ph. (905)415-2841  Fax. (905)477-0217
Received on Friday, 2 March 2001 12:44:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:38 GMT