Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. BackgroundWorker question

BackgroundWorker question

Scheduled Pinned Locked Moved C#
questionhelp
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    azusakt
    wrote on last edited by
    #1

    Hi, I have a problem when using BackgroundWorker in MDI child Form. Each MDI child in my application has its own BackgroundWorker, which is use for downsampling image. The backgroundworker in MDI child will auto start after the Child Form created. The problem I found is, when I open more than one MDI child(that means mulitple downsampling process is running at the same time), but some process of MDI child will be stopped. I don't know why it will stop. Is there any limitation of BackgroundWorker? Can anyone know this issue? How can I solve it? Thanks a lot.

    J 1 Reply Last reply
    0
    • A azusakt

      Hi, I have a problem when using BackgroundWorker in MDI child Form. Each MDI child in my application has its own BackgroundWorker, which is use for downsampling image. The backgroundworker in MDI child will auto start after the Child Form created. The problem I found is, when I open more than one MDI child(that means mulitple downsampling process is running at the same time), but some process of MDI child will be stopped. I don't know why it will stop. Is there any limitation of BackgroundWorker? Can anyone know this issue? How can I solve it? Thanks a lot.

      J Offline
      J Offline
      Jasmine2501
      wrote on last edited by
      #2

      How many threads are you trying to run? Too many can just slow things down.

      "Quality Software since 1983!"
      http://www.smoothjazzy.com/ - see the "Programming" section for (freeware) JazzySiteMaps, a simple application to generate .Net and Google-style sitemaps!

      A 1 Reply Last reply
      0
      • J Jasmine2501

        How many threads are you trying to run? Too many can just slow things down.

        "Quality Software since 1983!"
        http://www.smoothjazzy.com/ - see the "Programming" section for (freeware) JazzySiteMaps, a simple application to generate .Net and Google-style sitemaps!

        A Offline
        A Offline
        azusakt
        wrote on last edited by
        #3

        I just try to open 2 child Form. Both of them are starting the downsample process. slow down problem we can understand, and is acceptable . But one thread suddenly stop, it makes us feel a big problem. Btw, each child Form, just starting one BackgroundWorker. I really don't know why it will stop? Did I get something wrong?

        J 1 Reply Last reply
        0
        • A azusakt

          I just try to open 2 child Form. Both of them are starting the downsample process. slow down problem we can understand, and is acceptable . But one thread suddenly stop, it makes us feel a big problem. Btw, each child Form, just starting one BackgroundWorker. I really don't know why it will stop? Did I get something wrong?

          J Offline
          J Offline
          Jasmine2501
          wrote on last edited by
          #4

          There's a lot that can go wrong with multiple threads. How are they invoked? Are they started by the main form or something else? Do they have any shared object? Send code...

          "Quality Software since 1983!"
          http://www.smoothjazzy.com/ - see the "Programming" section for (freeware) JazzySiteMaps, a simple application to generate .Net and Google-style sitemaps!

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups