Click here to Skip to main content
15,903,854 members
Home / Discussions / C#
   

C#

 
QuestionRunning a BackgroundWorker in a Single Threaded Apartment Pin
William Winner13-Apr-10 9:09
William Winner13-Apr-10 9:09 
AnswerRe: Running a BackgroundWorker in a Single Threaded Apartment Pin
Luc Pattyn13-Apr-10 11:08
sitebuilderLuc Pattyn13-Apr-10 11:08 
GeneralRe: Running a BackgroundWorker in a Single Threaded Apartment Pin
William Winner13-Apr-10 11:21
William Winner13-Apr-10 11:21 
GeneralRe: Running a BackgroundWorker in a Single Threaded Apartment Pin
Luc Pattyn13-Apr-10 11:32
sitebuilderLuc Pattyn13-Apr-10 11:32 
GeneralRe: Running a BackgroundWorker in a Single Threaded Apartment Pin
William Winner13-Apr-10 11:49
William Winner13-Apr-10 11:49 
GeneralRe: Running a BackgroundWorker in a Single Threaded Apartment Pin
Luc Pattyn13-Apr-10 12:04
sitebuilderLuc Pattyn13-Apr-10 12:04 
GeneralRe: Running a BackgroundWorker in a Single Threaded Apartment [modified] Pin
William Winner13-Apr-10 12:15
William Winner13-Apr-10 12:15 
GeneralRe: Running a BackgroundWorker in a Single Threaded Apartment Pin
Luc Pattyn13-Apr-10 13:04
sitebuilderLuc Pattyn13-Apr-10 13:04 
seems like you are saying somewhere is a button handler that has a form.ShowDialog() inside; this will block its thread as long as the modal dialog is open, and prevent a BGW to report progress (i.e. the progress reports will get queued, and the BGW will continue its job, but the progress reports will not dequeue until the modal form closes).

possible solutions:
- don't use modal dialogs;
- don't report progress while a modal dialog is showing;
- maybe there is some hack that makes it work, I don't know as I never got in that situation.

I suggest you perform a little experiment to confirm, e.g. temporarily replace ShowDialog() by Show().

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

Prolific encyclopedia fixture proof-reader browser patron addict?
We all depend on the beast below.


GeneralRe: Running a BackgroundWorker in a Single Threaded Apartment Pin
William Winner13-Apr-10 13:18
William Winner13-Apr-10 13:18 
GeneralRe: Running a BackgroundWorker in a Single Threaded Apartment Pin
Luc Pattyn13-Apr-10 13:34
sitebuilderLuc Pattyn13-Apr-10 13:34 
GeneralRe: Running a BackgroundWorker in a Single Threaded Apartment Pin
William Winner16-Apr-10 10:12
William Winner16-Apr-10 10:12 
GeneralRe: Running a BackgroundWorker in a Single Threaded Apartment Pin
Luc Pattyn16-Apr-10 10:26
sitebuilderLuc Pattyn16-Apr-10 10:26 
GeneralRe: Running a BackgroundWorker in a Single Threaded Apartment Pin
William Winner13-Apr-10 11:50
William Winner13-Apr-10 11:50 
QuestionKernelbase error on Server 2008 Pin
Paladin200013-Apr-10 9:05
Paladin200013-Apr-10 9:05 
AnswerRe: Kernelbase error on Server 2008 Pin
Paw Jershauge13-Apr-10 10:45
Paw Jershauge13-Apr-10 10:45 
AnswerRe: Kernelbase error on Server 2008 Pin
mitch_olgren30-Jul-10 5:20
mitch_olgren30-Jul-10 5:20 
GeneralRe: Kernelbase error on Server 2008 Pin
Paladin200030-Jul-10 6:04
Paladin200030-Jul-10 6:04 
QuestionDoes anyone encountered problems with using of multiple TCP channels in .NET remoting app? [modified] Pin
Slava_K13-Apr-10 8:28
Slava_K13-Apr-10 8:28 
AnswerRe: Does anyone encountered problems with using of multiple TCP channels in .NET remoting app? Pin
thugthug15-Apr-10 5:17
thugthug15-Apr-10 5:17 
QuestionNPlot - how do I not show weekend dates Pin
boreland13-Apr-10 7:36
boreland13-Apr-10 7:36 
QuestionBackground Worker with Multiple Progress Bars Pin
eddieangel13-Apr-10 7:07
eddieangel13-Apr-10 7:07 
AnswerRe: Background Worker with Multiple Progress Bars Pin
Luc Pattyn13-Apr-10 7:23
sitebuilderLuc Pattyn13-Apr-10 7:23 
GeneralRe: Background Worker with Multiple Progress Bars Pin
eddieangel13-Apr-10 8:47
eddieangel13-Apr-10 8:47 
GeneralRe: Background Worker with Multiple Progress Bars Pin
Luc Pattyn13-Apr-10 9:55
sitebuilderLuc Pattyn13-Apr-10 9:55 
GeneralRe: Background Worker with Multiple Progress Bars Pin
eddieangel13-Apr-10 13:46
eddieangel13-Apr-10 13:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.