[Gtk-sharp-list] Gda.Value
Mikkel Kruse Johnsen
mikkel@linet.dk
Wed, 21 Jul 2004 18:57:01 +0200
--=-7fT0dNJaeZKDdifsVVn3
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
--=-7fT0dNJaeZKDdifsVVn3
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/qBcs/DIef2Kq/IRAofHAJ0fnk9fIE+A9iGaiM/Dk2byT5kjKACfez67
324AS7x4OL5BS50Fq4qi4pA=
=tmSl
-----END PGP SIGNATURE-----
--=-7fT0dNJaeZKDdifsVVn3--