- summary: MMCLib2 - PropertySheet bug --> MMCLib2 - Running under Services and Applications
when adding a snapin to "Services and Applications" in
computer management by setting the following registry key :
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MMC\NodeTypes\{476E6449-AAFF-11D0-B944-00C04FD8D5B0}\Extensions\NameSpace]
"{myguid}"="hello"
and opening 'computer management' and clicking on the
'Services and Applications' it throws an"application
error" that states:
----------------------------------------------------------------------
an error occured please contact the administrator with
the following information:
Specific cast is not valid.
Stack Trace:
at Ironring.MMC.Core.SnapinBase.Notify(IDataObject
lpDataObject, UInt32 aevent, IntPtr arg, IntPty param)
in D:\myprojects\MMCLib2\Core\SnapinBase.cs:line 500
----------------------------------------------------------------------
in the source code on that line it does a cast like:
DataObject test = (DataObject)lpDataObject;
when i debug it the lpDataObject (of type
Ironring.MMC.Core.IDataObject ) does not have a valid
m_ObjectToDataMap..
like this:
------------------------------
+ lpDataObject {System.__ComObject}
Ironring.MMC.Core.IDataObject
- [System.__ComObject] {System.__ComObject}
System.__ComObject
- System.MarshalByRefObject {System.__ComObject}
System.MarshalByRefObject
System.Object {System.__ComObject} System.Object
__identity <undefined value> System.Object
m_ObjectToDataMap <undefined value>
System.Collections.Hashtable
m_wrap 80035144 int
------------------------------
i'm not sure what this means but hopefully someone else
does.