Re: Report progess during black box process
- From: Pavel Minaev <int19h@xxxxxxxxx>
- Date: Thu, 7 May 2009 21:13:29 -0700 (PDT)
On May 7, 8:25 pm, Bill <billsahi...@xxxxxxxxx> wrote:
I am using a dataview to sort a table that can have a million or so
rows. I am reporting to the user the progress while rows are added,
but when the code executes the Sort method there is no progress
reported until the sort finishes, which can take more than a minute
and the Task Manager indicates the application is not responding. I
dont want users to think it has hung. I was thinking about using a
timer to periodically display something, but the process is being
executed in a backgroundworker. Any suggestions?
If you read the documentation on BackgroundWorker (see ReportProgress
method and ProgressChanged event), you'll see that it specifically
includes means to marshal progress information from worker thread to
the UI thread, presumably so that the latter can display it in some
way.
Also, if you actually perform your sort entirely in BackgroundWorker,
then your application should not be reported as "not responding". If
it does that, then you aren't telling the whole story here. Or are you
doing the sort in BackgroundWorker, but block the UI thread waiting
for it to finish??
.
- References:
- Report progess during black box process
- From: Bill
- Report progess during black box process
- Prev by Date: Re: Report progess during black box process
- Next by Date: Re: CML Lookup
- Previous by thread: Re: Report progess during black box process
- Next by thread: RE: Report progess during black box process
- Index(es):
Relevant Pages
|