[MonoDevelop] Possible mono bug.

Blair Jennings blair@san.rr.com
21 Jan 2004 14:12:49 -0800


OK, I am running mono 0.29 from Red Carpet with the GTK# from CVS
(pulled last night); and I am getting this error when I load a perfectly
good MonoDevelop Combine (I have loaded into #D on an W2K box to confirm
that it is not the #D code).


 
** (MonoDevelop:4124): WARNING **: Cannot load type
'ICSharpCode.SharpDevelop.Internal.Project'
An exception occurred: A null value was found where an object instance
was required in (unmanaged)
/usr/lib/libmono.so.0(mono_class_from_mono_type+0x16) [0x400e
72c8]
in (unmanaged) /usr/lib/libmono.so.0(mono_type_get_object+0x1f)
[0x400926a9]
in (unmanaged) /usr/lib/libmono.so.0 [0x40093ecd]
in (unmanaged) /usr/lib/libmono.so.0 [0x40094532]
in (unmanaged)
/usr/lib/libmono.so.0(mono_custom_attrs_construct+0xb9)[0x400948
87]
in
(unmanaged)/usr/lib/libmono.so.0(mono_reflection_get_custom_attrs+0x266)
[0x
40095198]
in [0x0002b] (at /cvs/mcs/class/corlib/System/MonoCustomAttrs.cs:31)
System.Mono
CustomAttrs:from_cache(System.Reflection.ICustomAttributeProvider)
in [0x00014] (at /cvs/mcs/class/corlib/System/MonoCustomAttrs.cs:77)
System.Mono
CustomAttrs:GetCustomAttributes(System.Reflection.ICustomAttributeProvider,Syst
em.Type,bool)
in [0x00003] (at
/cvs/mcs/class/corlib/System.Reflection/MonoField.cs:71) System
.Reflection.MonoField:GetCustomAttributes (System.Type,bool)
in [0x0002b] (at
/home/blair/MonoDevelop/trunk/MonoDevelop/src/Main/Base/Internal/Project/Project/AbstractProject.cs:324) ICSharpCode.SharpDevelop.Internal.Proj
ect.AbstractProject:GetXmlAttributes
(System.Xml.XmlDocument,System.Xml.XmlElement,object)
 
The Monodevelop code showing the problem is:
	ConvertToRelativePathAttribute[]  convertToRelPath =
(ConvertToRelativePathAttribute[])fieldInfo.GetCustomAttributes(typeof(ConvertToRelativePathAttribute), true);
				
Where the CustomAttribute returns as a single element array.

Any help would be appreciated I have been banging my head against this
for at least a week.

Thanks,

Blair