[Mono-list] DATadapter.fill( dataset )

Mathieu PASQUET kiorky@wanadoo.fr
Tue, 18 May 2004 18:24:48 +0200 (CEST)


I ve probleme with ADO.NET and ths use of dataadapter !


kiorky@doldit100:~/tessss$ ./aexec.sh=20
export MONO_PATH=3D"/usr/local/lib/mono/1.0"
mono  ./ADO.exe


               ---------------------------------------------
                ---     DEBUT APPLICATION               -----
                ---------------------------------------------
                construction de : ado.generique.requete.select.adapterposgr=
esql.Appli



Exception  lev=E9e: Out of memory
-----------------------------------------
kiorky@doldit100:~/


code:=09=09=09
string srequet =3D@"srequet+=3D@"SELECT *  FROM popo";
cout.WriteLine("toto");
//declaration
string srequet3=3D@"Server=3D126.10.0.1;Port=3D5432;User Id=3DPasquet;Datab=
ase=3D";
srequet3+=3D@"Marrot;Password=3D*********";
Npgsql.NpgsqlConnection toto =3D new Npgsql.NpgsqlConnection(srequet3);
Npgsql.NpgsqlCommand cmd =3D new Npgsql.NpgsqlCommand(srequet,toto);
Npgsql.NpgsqlDataAdapter DaAd =3D new Npgsql.NpgsqlDataAdapter(cmd);=09=09=
=09=09=09
DataSet Dsdset =3D new DataSet();=09=09
DaAd.Fill(Dsdset);=09=09=09         <=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D CRASH HERE=09=09=09=09
DataTableCollection dtccol =3D Dsdset.Tables;

Anyone have idea about this?