PC Review


Reply
Thread Tools Rate Thread

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

 
 
Sazonov Dmitry
Guest
Posts: n/a
 
      27th Apr 2005
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.
 
Reply With Quote
 
 
 
 
=?Utf-8?B?Q293Ym95IChHcmVnb3J5IEEuIEJlYW1lcikgLSBN
Guest
Posts: n/a
 
      28th Apr 2005
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!
***************************



"Sazonov Dmitry" wrote:

> 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.
>

 
Reply With Quote
 
Sazonov Dmitry
Guest
Posts: n/a
 
      28th Apr 2005
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.

 
Reply With Quote
 
Willy Denoyette [MVP]
Guest
Posts: n/a
 
      30th Apr 2005

"Sazonov Dmitry" <(E-Mail Removed)> wrote in message
news:0a5401c54c07$5f56e720$(E-Mail Removed)...
> 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.
>


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

Willy.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hashtable insert failed. Load factor too high. archana Microsoft C# .NET 0 11th Dec 2008 07:16 AM
.Net 2.0 Hashtable Insert Failed. Load factor too high =?Utf-8?B?UmFuZ2E=?= Microsoft Dot NET Framework 1 29th Sep 2006 04:26 PM
optimal load factor for small Hashtable John A Grandy Microsoft C# .NET 17 5th Apr 2006 02:02 AM
DropDownList having no selected value "on occasion", typically during high load times jhonz@etsmail.com Microsoft ASP .NET 0 24th Jun 2005 06:30 AM
Intermittent Hashtable() error: Load factor too high Gary Davis Microsoft C# .NET 4 28th Aug 2003 01:52 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:11 AM.