BackgroundWorker question
-
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.
-
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.
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! -
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!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?
-
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?
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!