backgroundworker Questions

7

Solved

In a WPF app, I am using a BackgroundWorker to periodically check for a condition on the server. While that works fine, I want to pop a MessageBox notifing the users if something fails during the c...
Selfimprovement asked 23/6, 2010 at 19:2

3

Solved

I know it has 3 methods. In my program I have a method to send a message. It is often late and the program sometimes doesn't send the message at all in response to a button press. At times it is as...
Snapshot asked 26/6, 2011 at 0:8

3

I am trying to add opentelemetry to one of my .net core 5.0 worker service project everything works ok but the traces are not begin sent to the Jaeger UI, I also notice the ActivitySource.StartActi...
Diane asked 27/4, 2021 at 5:41

5

Solved

I need to be able to continuously run my BackgroundWorker. The DoWork event contains a pool threaded process and the OnComplete updates my UI. I have not been able to find a way to infinitely loop...

12

Solved

I have a stylistic question about the choice of background thread implementation I should use on a windows form app. Currently I have a BackgroundWorker on a form that has an infinite (while(true))...
Conjoint asked 1/10, 2009 at 22:25

3

Solved

I'm using a background worker to handle the loading of a file to stop my ui from freezing however it seems that the RunWorkerCompleted is finishing before my DoWork event has completed (Causes erro...
Barclay asked 29/5, 2013 at 7:50

15

Solved

My code is as below public CountryStandards() { InitializeComponent(); try { FillPageControls(); } catch (Exception ex) { MessageBox.Show(ex.Message, "Country Standards", MessageBoxButton...
Incoherent asked 16/3, 2012 at 6:7

8

Solved

Basically I have an anonymous method that I use for my BackgroundWorker: worker.DoWork += ( sender, e ) => { foreach ( var effect in GlobalGraph.Effects ) { // Returns EffectResult yield re...
Gastight asked 23/3, 2011 at 21:8

4

Solved

I am relatively new to .NET programming and multithreading in general, and was wondering if it is ok to use .NET provided BackgroundWorker to spawn off worker threads to do some work in a console a...
Mahler asked 3/2, 2010 at 23:6

2

Solved

I'm using Hangfire for background processing. The Hangfire server is running as a web app, I'd like to be able to enqueue a job directly to the database from a SSIS package - is this supported/poss...
Commentate asked 29/5, 2017 at 18:37

3

Solved

Im using dotnet worker service (.net 5) I integrated serilog as well as enrichers and sinks. But for some reason I dont see any outputs into my files logs. Here is my appsettings.json { "Conn...

4

Solved

I am using node-cron to do some heavy tasks (update database) every minute. Does this task use main process to work or nodejs will create some workers to do these taks? var CronJob = require('cron...
Ibadan asked 20/5, 2015 at 23:28

3

Solved

My C# application has several background workers. Sometimes one background worker will fire off another. When the first background worker completes and the RunWorkerCompleted event is fired, on whi...
Cattegat asked 10/5, 2010 at 22:12

1

I have an ASP.NET 4.6 web API. The app does not have a standalone DB, and it is a micro-service designed for searching files. I want to implement a CRON job in the background and utilize HangFire. ...
Zoogeography asked 25/6, 2021 at 22:48

8

I need to make RunWorkerAsync() return a List<FileInfo>. What is the process to be able to return an object from a background worker?

5

Solved

I've got a c# windows form app I threw together. It's fairly simple:\ inputs: text string source folder path destination folder path integer count The app searches through text files in the ...
Barra asked 21/7, 2010 at 19:15

5

Solved

In the past few days I have tested the new features of .net 4.5 and c# 5. I like its new async/await features. Earlier I had used BackgroundWorker to handle longer processes in the background with...
Felicefelicia asked 13/9, 2012 at 20:51

5

I realized something strange in my background worker in my WPF application. What I'm trying to accomplish right now is to wait until the BW finishes to start another thread. Check the following c...
Doorstone asked 21/1, 2013 at 0:34

3

i have a serious problem with background worker. code is working if task is ending regular. when i cancel the background task i get an system.invalidoperationexception in the RunWorkerCompleted fun...
Eccrine asked 28/11, 2011 at 18:55

2

Solved

I'm facing some dependency injection issues in .NET Core Worker Service. Please see the below code in Program.cs file. public static void Main(string[] args) { Log.Logger = new LoggerConfiguratio...
Enlistee asked 28/5, 2020 at 13:56

1

After a certain time, I want to turn off audio_service in the background with the android_alarm_manager plugin. How can I solve this problem? When I try to do this, I get the following error. [...

3

Solved

HI all. I have an array of BackgroundWorker objects running instances of a Worker class. When I call the Worker class the object instance does it's thing and then runs out of code (the loop finishe...
Sauropod asked 30/11, 2010 at 3:2

3

Solved

I get an very strange behaviour when I change my Visual Studio 2010 config from Debug to Release: I have a BackgroundWorker: _bg, in the DoWork I have: iswaiting = true; _bg.ReportProgress(1, f...
Bedstead asked 17/10, 2012 at 16:16

3

Solved

I'm having a really weird issue with a background worker in one of my applications. I recently overhauled it slightly with some GUI fixes but now when someone on another PC runs the .exe or install...
Amiss asked 24/11, 2011 at 8:1

4

Solved

I am trying to figure out a way to verify that a BackgroundWorker thread is alive (i.e. still running. The thread is essentially implemented as a simple infinite loop: while (AllConditionsMet()) {...
Ligament asked 30/10, 2012 at 13:7

© 2022 - 2025 — McMap. All rights reserved.