Advertisement

05.24.2007 at 11:22AM PDT, ID: 22593206
[x]
Attachment Details

VB.Net 2005 backgroundWorker

Asked by k3n51mm in .NET, Miscellaneous Programming, Visual Studio .NET 2005

Tags: backgroundworker, 2005

I have a CPU-intensive subroutine that takes a datatable as its parameter. When it begins, the app hangs until it completes. this can take as long as 60 seconds for a 1.5 MB XML file. I can imagine it taking longer to process larger incoming files.

Therefore, I need to show the user something like a progress bar or even just a popup that informs them that the program has not frozen.

What I can't figure out yet is how to execute this subroutine from within the BackgroundWorker_DoWork sub, since its datatable parameter is not declared in the backgroundWorker. I can't just add the datatable parameter, sicne then the signatures don't match. Little help?Start Free Trial
[+][-]05.24.2007 at 11:47AM PDT, ID: 19151725

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.24.2007 at 12:00PM PDT, ID: 19151830

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.24.2007 at 12:04PM PDT, ID: 19151861

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.24.2007 at 12:19PM PDT, ID: 19152013

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.24.2007 at 12:33PM PDT, ID: 19152130

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.24.2007 at 12:34PM PDT, ID: 19152142

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .NET, Miscellaneous Programming, Visual Studio .NET 2005
Tags: backgroundworker, 2005
Sign Up Now!
Solution Provided By: FernandoSoto
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.24.2007 at 12:44PM PDT, ID: 19152221

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.24.2007 at 02:01PM PDT, ID: 19152746

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32