F
farseer
I am recieving the folllowing error with the code below: "A first
chance exception of type 'System.InvalidOperationException' occurred in
mscorlib.dll"
There are two items in _keyMap. after the first iteration (when it's
about to move to the 2nd item, the error above occurs. This error
happens on the "foreach" line itself. WOuld anyone have a clue why?
private IDictionary _keyMap = new Hashtable( );
....
foreach ( DictionaryEntry entry in _keyMap )
{
Key key = (Key) entry.Key;
KeyModifier km = ( KeyModifier ) entry.Value;
ProcessKey( key, Km);
}
I have tried changing IDictionary to HashTable and i have ried using
GetEnumerator and MoveNext, but the same error occurs.
chance exception of type 'System.InvalidOperationException' occurred in
mscorlib.dll"
There are two items in _keyMap. after the first iteration (when it's
about to move to the 2nd item, the error above occurs. This error
happens on the "foreach" line itself. WOuld anyone have a clue why?
private IDictionary _keyMap = new Hashtable( );
....
foreach ( DictionaryEntry entry in _keyMap )
{
Key key = (Key) entry.Key;
KeyModifier km = ( KeyModifier ) entry.Value;
ProcessKey( key, Km);
}
I have tried changing IDictionary to HashTable and i have ried using
GetEnumerator and MoveNext, but the same error occurs.