Using threading with a datagrid control

M

Marco

I'm pulling data from a slow data source into a datagrid so I tried to
thread that part of the code. It works fine if only a few records are
returned but I get the following error if it takes longer then a few
seconds.

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.

Does anyone know why this is happening?
 
K

Ken Tucker [MVP]

Hi,

Post some code

Ken
--------------
I'm pulling data from a slow data source into a datagrid so I tried to
thread that part of the code. It works fine if only a few records are
returned but I get the following error if it takes longer then a few
seconds.

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.

Does anyone know why this is happening?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top