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

-- 
-----------------------------------------------------------------
[EMAIL PROTECTED]                                     debian/rules
[EMAIL PROTECTED]                             Monkeys do it better
_______________________________________________
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to