Matthias,
The only way that this could happen (assuming that hash is the same
hashtable in both instances) is if the key that was used to fetch the
ArrayList is different than the key that was used to get the ArrayList. Are
you sure they are the same?
Also, are you sure that nothing modified hash or the value pointed to by
key between the time that you set it and the time you try to access it?
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Matthias Kwiedor" <cr********@hotmail.com> wrote in message
news:Xn**********************************@207.46.2 48.16...
Hi!
What i want to do, is to put an ArrayList into a Hashtable. So i can
access the ArrayList fast over the key-indexing of the Hashtable.
What i did is to put the ArrayList into the Hashtable
hash[key] = arraylist
When i get the ArrayList back
ArrayList array = (ArrayList)hash[key]
But when i try to access array (for example array.Count) i get a null
reference exception.
Can someone help me out of there.
Regars
Matthias