bugDotGNU Portable.NET - Bugs: bug #12189, error in Hashtable removing...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #12189: error in Hashtable removing elements, see sample, CRITICAL error

Submitter:  Heiko Weiss <brubbel>
Submitted:  Wed 02 Mar 2005 02:07:53 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Thu 03 Mar 2005 08:20:47 AM UTC, comment #2: 

Fixed in CVS, patch #3783

Deryk Robosson <drobosson>
Group Member
Wed 02 Mar 2005 02:42:11 PM UTC, comment #1: 


Hi folks:

the problem is in creating the hash key.

hash = hash % capacity;

see:
capacity maybe 4:

hash = 10;
10 % 4 -> 2

hash = 1234567890
1234567890 % 4 -> 2

result: the same hashkey

Heiko Weiss <brubbel>
Group Member
Wed 02 Mar 2005 02:07:53 PM UTC, original submission:  


see sample.
Try sample, you'll see that you cannot remove all items from hashtable.
it depends on the keys.
a little changing the keys, all's ok, but with my keys in sample not.
i figured out, that the hash code might be the problem.


Heiko Weiss <brubbel>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #2639:  Main.cs added by brubbel (1KiB - text/plain - sample for bug in hashtable)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-03-03 drobosson StatusNone Fixed
    Open/ClosedOpen Closed
2005-03-02 brubbel Attached File- Added Main.cs, #2256

Back to the top

Powered by Savane 3.13-02a9.
Corresponding source code