[Mono-list] obscure error

Jo Vermeulen jo.vermeulen@gmail.com
Mon, 2 Aug 2004 11:32:56 +0200


I'm experimenting a bit with attributes. I keep getting a strange
error. Mono does not throw an exception, it just prints this before

** ERROR **: Type 0x00 not handled in custom attr array decoding

I do check for an Attribute I wrote, using MethodInfo.GetCustomAttributes():

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;

Any help would be appreciated.

Kind regards,

Jo Vermeulen
Student Computer Science at the LUC