what good are threads?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Laszlo Szijarto

    #1

    what good are threads?

    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


  • Dave

    #2
    Re: what good are threads?

    If you use them correctly that should not happen.

    "Laszlo Szijarto" <lszijarto@nosp am.mrdoc.cc> wrote in message
    news:bja44l$gfh $1@sulawesi-fi.lerc.nasa.go v...[color=blue]
    > I was very excited to find out that .NET supported multi-threading. I[/color]
    have[color=blue]
    > 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
    >
    >[/color]


    Comment

    • Chris Hornberger

      #3
      Re: what good are threads?

      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.

      "Laszlo Szijarto" <lszijarto@nosp am.mrdoc.cc> wrote in message news:<bja44l$gf h$1@sulawesi-fi.lerc.nasa.go v>...[color=blue]
      > 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[/color]

      Comment

      Working...