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

Submitted by:  Heiko Weiss <brubbel>
Submitted on:  Wed 02 Mar 2005 02:07:53 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

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

Fixed in CVS, patch #3783

Deryk Robosson <drobosson>
Project 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>
Project 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>
Project Member

 

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

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Thu 03 Mar 2005 08:20:47 AM UTCdrobossonStatusNone=>Fixed
  Open/ClosedOpen=>Closed
Wed 02 Mar 2005 02:07:53 PM UTCbrubbelAttached File-=>Added Main.cs, #2256

Back to the top


Powered by Savane 3.1-cleanup1