Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / April 2005

Tip: Looking for answers? Try searching our database.

BUG in .NET 1.1  HOW TO FIX "Hashtable insert failed.  Load factor too high" ??

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sazonov Dmitry - 27 Apr 2005 20:48 GMT
I got exeption in production environment:

A first chance exception of
type 'System.InvalidOperationException' occurred in
mscorlib.dll

Additional information: Hashtable insert failed.  Load
factor too high

Also I found article
http://support.microsoft.com/Default.aspx?kbid=831730

But it does not say where can I download fix for this
bug. It just forwarded me to "support center" where they
want to charge me $250/hour for fixing they own bugs.

We are loosing money because of this bug.

Please help to fix it A.S.A.P.
Cowboy (Gregory A. Beamer) - MVP - 28 Apr 2005 15:46 GMT
If you contact support and it is determined that this is your error, you will
not be charged for the call. The charge will only be assessed if the
mentioned bug fix is not your issue.

There may be a way to alleviate the problem.

1. How big is the Hashtable you are loading (ie, how many records)?
AND, more importantly
2. How much memory is the Hashtable consuming?

If you are loading HUGE Hastables, you will overrun the 2 GB limit per
process. This should throw an out of memory exception, but I am not sure this
is 100%. If you think this might help, there are two potential solutions to
this issue:

1. Move your application to a 64-bit machine, which has a much larger
address size. Have not tested this, but it has been suggested.

2. Increase the amount of memory per process in the registry. NOTE: If you
go this route, make sure you do not lift the value so high that you go over
your machine memory limit (factor in overhead for OS and all services
running, as well).

If these suggestions offer no solice, I would consider calling MS support.
If it turns out to be MS's fault (you found a bug, either the one mentioned
or a new one), you will not be charged.

---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************

> I got exeption in production environment:
>
[quoted text clipped - 15 lines]
>
> Please help to fix it A.S.A.P.
Sazonov Dmitry - 28 Apr 2005 16:31 GMT
My hashlable is pretty small, around 2000 elements.
Referenct-to-support class (which contains 2 double)
I guess payload of this hashtable should be (4+8*2)*2000
= 40Kb.

I'm creating 130 such hashtables. So, total memory should
not exceed 5-10MB

My total memory usage for applicaiton is about 100MB.
Machine has 2GB RAM and no other working processes.

this problem is not related to huge memory usage. It is
microsoft's bug.

I was able to fix it (I hope) by pre-creating my
hashtable before usage. Also, I called to microsoft and
got hotfix for that.

thanks.
Willy Denoyette [MVP] - 30 Apr 2005 13:00 GMT
> My hashlable is pretty small, around 2000 elements.
> Referenct-to-support class (which contains 2 double)
[quoted text clipped - 15 lines]
>
> thanks.

If you had installed SP1 for the v1.1 framework you wouldn't have had this
problem, this bug was fixed before SP1.

Willy.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.