Search Result
Collapse
6 results in 0.0042 seconds.
Keywords
Members
Tags
-
What if BackgroundWorker control used massively?
I'm being afraid if a mass usage of BackgroundWorke r control in a C# program will make the program slow and poorly responsible. So tell me if there is any such or any other problem if BackgroundWorke r control used massively? -
Backgroundworker and how to lock the shared object
Hello C# Gurus,
My question is about threading in C# (backgroundwork er and shared object)
I have a communication class designed with singleton pattern (only one instance )
private PRS485 serial = PRS485.RS485;
Inside this class I’ve implemented a backgroundworke r for serial communication.
With the help of PData class I’ve created a shared object between the main thread and backgroundworke r... -
Christopher T started a topic Why won't background worker execute code inside _RunWorkerCompleted event?in .NETWhy won't background worker execute code inside _RunWorkerCompleted event?
I am working on a C# .net 2.0 winform application. The user enters data into the main form and clicks the "run" button. A form called "optionsWin dow" is displayed via optionsWindow.S howDialog(). The user selects a few options on this form then clicks a "go" button. This button kicks off a background worker that runs a 3 minute process. On worker complete, I want to close the optionsWindow and open a processComplete... -
How to wait for all processes on Background worker to complete
I am having troubles with a background worker that will have processes running. If the last process started on the background worker completes it calls the RunWorkComplete d method, even if all of the processes aren't complete. I want to start all of the processes at once, and wait until all are finished before it is complete:
Code:private void TestRunning_DoWork(object sender, DoWorkEventArgs e) { procIDs
-
DB2Connection trouble within a BackgroundWorker
I have a program that, within a BackgroundWorke r, runs a small SELECT query from a DB2 Database. The basic form looks like this:
Code:BackgroundWorkerFunction(BackgroundWorker b) - open DB2Connection - run query - close DB2Connection - RaiseEvent QueryDone
-
"Outsourcing" Background worker creation
I am trying to code a simple background workers class without needing to use the backgroundworke r object on a form. This would allow me to use a background worker in any class without writing much additional code. Is it possible to pass in the name of a sub at runtime instead of hard-coding it? To do this I would replace onDoWork and onProgressChang ed below and use (Byval onWorkSub as SomeKindOfObjec t?, Byval onProgressChang edSub as SomeKindOfObjec t?)...