This looks like one method out of an extraordinarily complicated class; I'm sure we can't figure out what's wrong by looking at this small sample, but I also doubt anyone would want to read through the whole thing if you posted it here.
One thing that's suspicious about this is that I see you creating two DictEntry objects; how come? In general I'd think you'd want to store a value in just one place, but here you seem to be creating two, and doing different things with each. That can't be good.
I think that you're saying that I have two DictEntries because you were looking at both parts of the code.
When the first one above the line works perfectly.
However, the problem is with the hash table adding method.
Remaan Rem wrote:
Can any one help me with this code ..
It should add an item to the dictionary .. but when I print the hash table I get null for all the entries ..
I don't see any code like this:
That might well explain why the contents of the HashTable array always remain null.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.