[Gtk-sharp-list] Gda.Value

Mikkel Kruse Johnsen mikkel@linet.dk
Wed, 21 Jul 2004 19:02:02 +0200


--=-CLVSkbJtZ69aDKCA6P3R
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi

Is there any news on the Gda.Value problem. When doing:

if (dm.NRows =3D=3D 1) {
	Row row =3D dm.GetRow (0);
	for (int i=3D0; i<row.Length; i++) {
		Console.WriteLine (dm.GetColumnTitle(i));
		Value val =3D row.GetValue(i);
	}
}

I get:

Unhandled Exception: System.NullReferenceException: Object reference not
set to an instance of an object
in (unmanaged) (wrapper managed-to-native)
System.Object:__icall_wrapper_mono_string_new_wrapper (intptr)
in <0x00004> (wrapper managed-to-native)
System.Object:__icall_wrapper_mono_string_new_wrapper (intptr)
in <0x001a6> (wrapper unknown) Gda.Value:PtrToStructure (intptr,object)
in (unmanaged) (wrapper managed-to-native)
System.Runtime.InteropServices.Marshal:PtrToStructure
(intptr,System.Type)
in <0x00004> (wrapper managed-to-native)
System.Runtime.InteropServices.Marshal:PtrToStructure
(intptr,System.Type)
in <0x0008f> Gda.Value:New (intptr)
in <0x00055> Gda.Row:GetValue (int)
in <0x0017a> Test.MainClass:Main (string[])


/Mikkel

--=-CLVSkbJtZ69aDKCA6P3R
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBA/qGKs/DIef2Kq/IRAjjvAJ9qa3MQlnd1H27M6lrsGGK3/CG6LQCdFe8q
e19La9SYoaqXMY2o0VEDjec=
=DB1d
-----END PGP SIGNATURE-----

--=-CLVSkbJtZ69aDKCA6P3R--