[Mono-devel-list] gda provider list

Soeren stp at kabelnettet.dk
Fri Apr 9 08:13:24 EDT 2004


I get a nullptr when runnig the code below. Whats wrong with
the way I use e.Current?

	Gda.Application.Init();
	IEnumerator e = Gda.Config.ProviderList.GetEnumerator();
	while (e.MoveNext()) {
		ProviderInfo pi = (ProviderInfo)e.Current;
		Console.Write(pi.Id + " " + pi.Description);
	}


Unhandled Exception: System.NullReferenceException: A null value was
found where an object instance was required.
in (unmanaged) (wrapper managed-to-native)
GLib.Object:gtksharp_is_object (intptr)
in <0x00004> (wrapper managed-to-native) GLib.Object:gtksharp_is_object
(intptr)
in <0x0000b> GLib.Object:IsObject (intptr)
in <0x0011e> GLib.ListBase:DataMarshal (intptr)
in <0x0004f> ListEnumerator:get_Current ()
in <0x00052> ChessServer.Datamodel.GameDatabase:Run ()
in <0x00031> ChessServer.Datamodel.GameDatabase:Main ()

btw. I am using gtk-sharp 0.17 built from tar.





More information about the Mono-devel-list mailing list