Re: Report progess during black box process

Tech-Archive recommends: Speed Up your PC by fixing your registry



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??
.



Relevant Pages

  • Re: Report progess during black box process
    ... Create the DataSource in a BackGroundWorker and make sure the DataSource is ... afterwards sort it in the BackgroundWorker. ... I am reporting to the user the progress while rows are added, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Report progess during black box process
    ... Create the DataSource in a BackGroundWorker and make sure the DataSource is ... afterwards sort it in the BackgroundWorker. ... I am reporting to the user the progress while rows are added, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Report progess during black box process
    ... 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 ...
    (microsoft.public.dotnet.languages.csharp)
  • Report progess during black box process
    ... I am using a dataview to sort a table that can have a million or so ... I am reporting to the user the progress while rows are added, ... but when the code executes the Sort method there is no progress ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: How to get progress percentage in quicksort?
    ... Thanks very much Jay for looking into how the code works, ... > "order" of a sort method, which is the number of operations (typically, the ... lngBigO is the *expected* number of swaps for the given data. ... > actual number required may be more or less than that, so the progress report ...
    (microsoft.public.word.vba.general)