[Mono-devel-list] SqliteDataAdapter issues with Fill(System.Data.DataSet)

Nicholas Perez nicholasrperez at gmail.com
Wed Jan 26 13:50:24 EST 2005


Oh duh. I knew I was going to feel stupid after hitting the submit
button :) It makes sense now: of course it was null! Sigh.

Too much time in perl land, I suppose ;)


On Wed, 26 Jan 2005 16:45:26 -0200, Everaldo Canuto
<everaldo_canuto at yahoo.com.br> wrote:
> Nicholas,
> 
> It ocurs because you need to initialize a dset property.
> 
> try to use this:
> 
> sqlcon = new SqliteConnection("URI=file:sqlitetest.db");
> sqlda = new SqliteDataAdapter(SELECTALL, sqlcon);
> dset = new DataSet();
> sqlda.Fill(dset);
> 
> I think that now it works fine.
> 
> Everaldo.
> 
> Em Qua, 2005-01-26 às 12:36 -0600, Nicholas Perez escreveu:
> > Okay, I don't profess to have any great knowledge of what it is I am
> > doing, but I am feeding the SqliteDataAdapter all the right arguments
> > to get back the right object. the problem is that when I call
> > Fill(System.Data.DataSet) the thing crashes complaining about a null
> > reference.
> >
> > Am I doing something wrong?
> >
> >
> > This is on a Mono-1.1.3 install on XP SP2 with all the appropriate
> > binary dlls installed for sqlite[2|3].
> >
> > Attached is the code, along with the error messages, and the .mdb
> > (mono debug? and I had to rename it because gmail is paranoid that I
> > am sending an executable) that was generated from running the
> > executable (I assume).
> >
> 
> 


-- 
Nick
--



More information about the Mono-devel-list mailing list