[Mono-list] Generating monodoc documentation of gtksourceview using updater

Tiago Lima tiago.lima@vianw.pt
Tue, 10 Feb 2004 19:33:43 +0000


Hi,

I was trying to generate documentation for the gtksourceview-sharp.dll and I 
tried to run "updater.exe" to generate something monodoc could eat :) and it 
gives me the following errors... (apart from some warnings ?)...

$ mono --debug /usr/bin/updater.exe /usr/lib/gtksourceview-sharp.dll
 
	** (/usr/bin/updater.exe:3757): WARNING **: Could not load class from token 	
0x01000014 in /usr/lib/gtksourceview-sharp.dll
 
	** (/usr/bin/updater.exe:3757): WARNING **: Could not load class from token 
0x01000014 in /usr/lib/gtksourceview-sharp.dll

	...<snip - repeat this several times>...

	** (/usr/bin/updater.exe:3757): WARNING **: Could not load class from token 
0x01000014 in /usr/lib/gtksourceview-sharp.dll

Gtk.SourceStyleScheme
Gtk.Global
GtkSharp.CanRedoFiredArgs
GtkSharp.CanUndoFiredArgs
GtkSharp.HighlightUpdatedArgs
GtkSharp.MarkerUpdatedArgs
GtkSharp.StyleChangedArgs
GtkSharp.TagStyleChangedArgs
 
Unhandled Exception: System.NullReferenceException: A null value was found 
where an object instance was required
in (unmanaged) /usr/lib/libmono.so.0 [0x4009731d]
in (unmanaged) /usr/lib/libmono.so.0(mono_g_hash_table_lookup+0x28) 
[0x400fa0e8]
in (unmanaged) /usr/lib/libmono.so.0(mono_type_get_object+0x4d) [0x4009738d]
in (unmanaged) /usr/lib/libmono.so.0(mono_param_get_objects+0x160) 
[0x40097a70]
in (unmanaged) /usr/lib/libmono.so.0 [0x400a4b2e]
in <0x00028> (wrapper managed-to-native) 
System.Reflection.MonoMethodInfo:get_parameter_info (intptr)
in [0x00006] (at /cvs/mcs/class/corlib/System.Reflection/MonoMethod.cs:197) 
System.Reflection.MonoCMethod:GetParameters ()
in [0x00001] 
(at /data/builds/mono-cvs/monodoc/generator/updater.cs:1294) .Updater:GetMethodParameters 
(System.Reflection.MethodBase)
in [0x00029] 
(at /data/builds/mono-cvs/monodoc/generator/updater.cs:1427) .Updater:AddConstructorSignature 
(System.Reflection.ConstructorInfo)
in [0x00008] 
(at /data/builds/mono-cvs/monodoc/generator/updater.cs:999) .Updater:AddConstructor 
(System.Xml.XmlElement,System.Reflection.ConstructorInfo)
in [0x00120] 
(at /data/builds/mono-cvs/monodoc/generator/updater.cs:919) .Updater:AddMembersNode 
(System.Xml.XmlDocument,System.Type)
in [0x003b4] 
(at /data/builds/mono-cvs/monodoc/generator/updater.cs:769) .Updater:Generate 
(System.Type)
in [0x00097] 
(at /data/builds/mono-cvs/monodoc/generator/updater.cs:137) .Updater:Generate 
(System.Type,string,string,int&)
in [0x00043] 
(at /data/builds/mono-cvs/monodoc/generator/updater.cs:104) .Updater:Generate 
(string)
in [0x00099] 
(at /data/builds/mono-cvs/monodoc/generator/updater.cs:91) .Updater:Main 
(string[])

This is from "updater.cs" :

        static string GetMethodParameters (MethodBase method)
        {
                StringBuilder sb;
                ParameterInfo [] pi = method.GetParameters (); // <<< line1294

                if (pi.Length == 0)
                        return "()";

...

Am I missing something here? The files it is able to generate look fine to 
me...
Does the updater needs some "dependencies" when generating from an assembly? 
As the gtksourceview-sharp.dll assembly is an installed assembly, perhaps 
not... ?

Thanks in advance,
	Tiago Lima