Search Result

Collapse
6 results in 0.0042 seconds.
Keywords
Members
Tags
backgroundworker
  •  

  • 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?
    See more | Go to post

  • 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...
    See more | Go to post

  • Why 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...
    See more | Go to post

  • 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
    ...
    See more | Go to post

  • 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
    Now, I've been very careful not to put a DB2Connection within a loop, because I don't want to open multiple connections....
    See more | Go to post

  • Infog
    started a topic "Outsourcing" Background worker creation

    "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?)...
    See more | Go to post
Working...