E
Eric
Hi, can anyone guide me throught this:
In my application, I have a global DataSet. I then run
FTP processes in up to 10 simultaneous threads and each
thread calls progress events in the main application.
When a progress event is called, the main application
writes the input to the global DataSet. Occasionally,
the DataSet writes itself to an XML file. This all works
fine. - But you can't see what's going on.
To provide a GUI I have a DataGrid on the form and it's
DataSource property is the relevant table in the global
DataSet. This works automatically - as the threads
report back, the data appears on the datagrid.
But, once in a while, the whole application crashes with
this message:
An unhandled exception of
type 'System.NullReferenceException' occurred in
system.windows.forms.dll
Additional information: Object reference not set to an
instance of an object.
Any ideas?
In my application, I have a global DataSet. I then run
FTP processes in up to 10 simultaneous threads and each
thread calls progress events in the main application.
When a progress event is called, the main application
writes the input to the global DataSet. Occasionally,
the DataSet writes itself to an XML file. This all works
fine. - But you can't see what's going on.
To provide a GUI I have a DataGrid on the form and it's
DataSource property is the relevant table in the global
DataSet. This works automatically - as the threads
report back, the data appears on the datagrid.
But, once in a while, the whole application crashes with
this message:
An unhandled exception of
type 'System.NullReferenceException' occurred in
system.windows.forms.dll
Additional information: Object reference not set to an
instance of an object.
Any ideas?