[Mono-dev] CreateDelegate Exception

tcmichals tcmichals at msn.com
Fri Aug 4 11:07:30 EDT 2006


Some more information, the code is as follows:
Delegate.CreateDeletegate(typeof(call),classObj, myMethodInfo);
Before this function is called print out some information:

myMethodInfo.Name is GetPropertiesViaEventTCI.IUIToolComm

The method in the assembly is declared as GetPropertiesViaEvent, the Module 
name is TCI and the module uses a interface called IUIToolComm, is there a 
name difference how VS.NET handles it compared to mono?

Or is the name lookup for the delegate incorrect?



"tcmichals" <tcmichals at msn.com> wrote in message 
news:eavmml$gf6$1 at sea.gmane.org...
> using 1.1.16 I on Linux, the application and assemblies are compiled using 
> VS.2005, when attempting to Create.CreateDelegate the following exeception 
> occurs:
> System.InvalidProgramException: Missing or incorrect header for method 
> GetPropertiesViaEvent
>  at <0x00000> <unknown method>
>  at (wrapper managed-to-native) System.Delegate:CreateDelegate_internal 
> (System.Type,object,System.Reflection.MethodInfo)
>  at System.Delegate.CreateDelegate (System.Type type, System.Object 
> target, System.Reflection.MethodInfo method) [0x00000]
>  at XNetSystemManager.XNetSysPlugin.GetProperties (System.String 
> sInterface, XNetSystemManager.DictionaryPropertyArgs Propargs, 
> System.EventHandler`1 receiveResponses, 
> XNetEventManager.DictionaryEventArgs args) [0x00000] 






More information about the Mono-devel-list mailing list