Gracious!
How can I state it more clearly?
I am using a Data Table, not a DataSet.
When I create the table, it's empty.
I add one row -
this is slow, but it works.
Then I try to add another row,
and get an untrappable NullReferenceException.
That's as far as I've gotten.
Each row represents the results of a testing cycle for an attached machine.
I'd like to let my users run the machine as long as they like (even
overnight, or several days), but if you feel it's important to limit the
number of records, perhaps you could advise me on a suitable limit.
TIA
- Turtle
"William (Bill) Vaughn" <(E-Mail Removed)> wrote in message
news:uQTlykN%(E-Mail Removed)...
> How MANY rows are you adding? How many rows does the DataSet have? How
many
> do you plan to read into the DataSet?
>
> --
> ____________________________________
> William (Bill) Vaughn
> Author, Mentor, Consultant
> Microsoft MVP
> www.betav.com
> Please reply only to the newsgroup so that others can benefit.
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> __________________________________
>
> "MacDermott" <(E-Mail Removed)> wrote in message
> news:uqfaFYE%(E-Mail Removed)...
> > I'm only adding one row at a time.
> > The table is the datasource for a datagrid.
> > It has 8 fields.
> >
> > Currently, the first row is added and displays correctly.
> > The second one throws a NullReferenceException which I can't seem to
trap,
> > even though I have a Try - Catch around the line of code which adds the
> > row
> > to the table and generates the error.
> >
> > I would be incredibly grateful for any insights you might be able to
> > offer!
> >
> > TIA
> > - Turtle
> >
> > "William (Bill) Vaughn" <(E-Mail Removed)> wrote in message
> > news:u8ii%23tB%(E-Mail Removed)...
> >> How many rows are you adding?
> >>
> >> --
> >> ____________________________________
> >> William (Bill) Vaughn
> >> Author, Mentor, Consultant
> >> Microsoft MVP
> >> www.betav.com
> >> Please reply only to the newsgroup so that others can benefit.
> >> This posting is provided "AS IS" with no warranties, and confers no
> > rights.
> >> __________________________________
> >>
> >> "Turtle MacDermott" <(E-Mail Removed)> wrote in message
> >> news:%238eIHcB%(E-Mail Removed)...
> >> >I have an ADO.NET datatable which I created from scratch - just
defined
> > its
> >> >columns and started adding data.
> >> > I find that when I step through adding a row in the debugger, it's
> >> > quite
> >> > slow - up to several seconds - at the point where I actually add the
> >> > row
> >> > to the table.
> >> >
> >> > Any ideas?
> >> >
> >> > TIA
> >> > - Turtle
> >> >
> >>
> >>
> >
> >
>
>