[Mono-list] obscure error
Paolo Molaro
lupus@ximian.com
Mon, 2 Aug 2004 14:50:02 +0200
On 08/02/04 Jo Vermeulen wrote:
> 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...
[...]
> <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>
Please provide a test case that fails, the above code is meaningless for
reproducing the bug.
Thanks.
lupus
--
-----------------------------------------------------------------
lupus@debian.org debian/rules
lupus@ximian.com Monkeys do it better