I have a hash table which stores IPs as strings for the key and an object of my creation in the corresponding value.
I keep getting an exception at foreach (DictionaryEntry info in MasterHash.Keys)
.
More specifically it happens as the debugger gets to DictionaryEntry
.
I have tried to provoke a message from my try catch statement but the compiler does not like me trying to cast e
to .ToString
or .Message
.
private void UpdateMap(Hashtable masterHash)
{
try
{
foreach (DictionaryEntry info in masterHash.Keys)
{
AxShockwaveFlashObjects.AxShockwaveFlash axFlash = wfh.Child as AxShockwaveFlashObjects.AxShockwaveFlash;
IPInstance foo = (IPInstance)info.Value;
axFlash.CallFunction(foo.GetMarkerCall().ToString(SaveOptions.DisableFormatting));
}
}
catch (Exception e)
{
Console.WriteLine(e.ToString());
}
}