[Mono-list] obscure error
Jo Vermeulen
jo.vermeulen@gmail.com
Mon, 2 Aug 2004 11:32:56 +0200
Hello,
I'm experimenting a bit with attributes. I keep getting a strange
error. Mono does not throw an exception, it just prints this before
aborting:
** ERROR **: Type 0x00 not handled in custom attr array decoding
aborting...
I do check for an Attribute I wrote, using MethodInfo.GetCustomAttributes():
<code>
protected MyAttribute GetAttribute(MethodInfo mi)
{
object[] attrs = mi.GetCustomAttributes(true);
ArrayList l = new ArrayList();
foreach(Attribute a in attrs)
{
if(a is MyAttribute)
{
// there can be only one event handler per method, so return it
return (MyAttribute)a;
}
}
// none found
return null;
}
</code>
Any help would be appreciated.
Kind regards,
--
Jo Vermeulen
Student Computer Science at the LUC