what good are threads?

  • Thread starter Thread starter Laszlo Szijarto
  • Start date Start date
L

Laszlo Szijarto

I was very excited to find out that .NET supported multi-threading. I have
long had issues with Forms freezing up while large datasets (recordsets)
were being collected or with various looping operations.

Yet I spin off separate threads to fill DataSets and do various other
operations, and my Windows Forms STILL LOCK UP. So what the heck good do
these threads actually do?

Thank you,
Laszlo
 
Can you post a code snippet? Something is not right.

Also, make sure you're not trying to update the form directly from the
other thread. The form is owned by the initial thread. To update the
form during your background thread's execution, you have to use an
invoke method from your form.
 

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

Back
Top