worker

Best methodology for developing c# long running processor apps

I have several different c# worker applications that run various continuous tasks: sending emails from queue, importing new orders from website database to orders database, making database backups and restores, running data processing for OLTP -> OLAP, and other related tasks. Before, I released these as windows services, but currently I...

.Net Background worker process localization help

I am experiencing some weird behavior with localized messages reported from my background worker process in my windows forms application. The application is a setup application with windows forms. The application launches a background worker to perform and IIS reset and then install MSIs. The first time I run the application on a Spani...

C# .NET 3.5 : How to invoke an event handler and wait for it to complete

I have a class containing a worker thread which receives data from a queue in a loop. Another part of the app sinks an event from this class, which the class raises for each queue item. These events are fired asynchronously, so at busy times the other part of the app can be processing several events at once. This should be fine but we...

C# cancelling DoWork of background worker

Hello, C# 2008 I am using the code below to login to a softphone. However, the login progess is a long process as there are many things that have to be initialized and checks to be made, I have only put a few on here, as it would make the code to long to post. In the code below I am checking if the CancellationPending if the CancelAsy...

IIS 6.0 application pool stop issue

Hello everyone, In my IIS log, I found warning level event ID 1013, which says the stop time exceeds expected stop time for worker process of a specific web application. My question is, how could I know or track from what reason IIS worker process stops? Does this warning level event ID means worker process application pool is stopped ...

Reality Question : Do you tune the IIS Max thread pool ??

By default, the IIS 6.0 process creates as many as four threads per processor. We can adjust the maximum number of threads in the IIS 6.0 service process by adding the MaxPoolThreads entry to the following registry path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Inetinfo\Parameters and give the value between 2 - 20. I would...

Threading using BackgroundWorker

I have a scenario. I have a list of user id's displayed on the windows form. As soon as I click one of the user id's I go and get the user details from the DB. To retain the responsiveness of the application, on selection changed event of the listbox, I create new BackgroundWorker(BW) objects and hit the DB. I show 'Searching user 'abc'....

how to include javascript files in Google Gears Worker (no DOM access)

how does one include other .js files in the .js of a Worker. Every "include" solution for Javascript that I've found does it by loading into a tag, which is not an option for Workers since they don't have access to the DOM. I see from your 950087/include-javascript-file-inside-javascript-file that using Ajax and eval() will do it. I ca...

Issue with IIS Worker Process User permission for new installation

Hi there, I mean issue with setting the Worker Process to read/write/modify. In what scenario/task do we need to use Worker Process for web script? Currently I only know of 1 scenario>> when a script want to resize image. What else? How can we easily set WP permission for a particular web folder automatically, so that we can carry ou...

Killing all thread workers when one thread found the answer (ruby)

Here is a sample program: def worker(from, to) puts "#{from}..#{to}" for i in from..to do if i == 42 puts "kill the rest of the threads" break; end puts i sleep 1 end end if __FILE__ == $0 threads = [] for i in 0..9 do threads << Thread.new { worker(i*10, i*10+10) } end threads.each { |th...

What happens to other users if the .NET worker process crashes?

My knowledge of how processes are handled by the ASP.Net worker process is woefully inadequate. I'm hoping some of the experts out there can fill me in. If I crash the worker process with a System.OutOfMemoryException, what would the user experience be for other users who were being served by the same process? Would they get a blank scr...

C# - class field is null when accessed from a worker thread but not main thread

Not sure what I'm doing wrong: class MyClass { private EventInfo eventInfo; public void OnGenerateEvent(object sender, EventArgs e) { // Called from *main* thread // Load assembly and set eventInfo here eventInfo = ....GetEvent(...); eventInfo.AddEventHandler(source, handler); //...

How to update GUI thread/class from worker thread/class?

First question here so hello everyone. The requirement I'm working on is a small test application that communicates with an external device over a serial port. The communication can take a long time, and the device can return all sorts of errors. The device is nicely abstracted in its own class that the GUI thread starts to run in i...

Weblogic / EjbGen: worker manager configuration.

I want to declare a worker manager to perform some work in managed thread. Weblogic documentation tells that we can - declare a global worker manager using the admin console - declare a local it in an ejb-jar.xml config file. I want to use the second option. But my ejb-jar.xml is generated by the ejbgen tool. There is no tag in ejbgen...

WPF worker thread requires suspension by consumer notification

Hi I have a producer - consumer pattern. The WPF UI is sort of ancilliary to a long-running worker thread which is listening to packets and enqueing tasks. In practise all the messages are dequeued and then the UI consumer processes. The issue I have is that I have a UIcontroller class which is responsible for all WPF GUI components. It...

Thread exception when loading 3 instance of a class with worker thread connecting to a legacy system via a third party app

We have a composite wpf solution which use MVVM. there is a view class, in its code behind, we use a new worker thread to connect to a legacy system and load it into WindowsFormHost in xaml file using a third party app. When user logon the solution, it tries to load three instances of view class on three tabs. sometimes we get "Windows ...

Simplest code snippet to add a tiny REST endpoint to an Azure Worker Role

I would like to be able of adding a tiny REST endpoint to an Azure Worker Role, just dumping some non critical monitoring meta-data. I can think of many complicated ways of doing that, but I feel there are simpler solutions. What would be your code snippet to tackle this? ...

worker process in IIS shared hosting

Can anyone tell me, is there a way to run a process in IIS shared hosting service. Suppose, the scenario is like "I want to send emails to a list of email id's after everywhere 3 hrs", so the challenge here is the process should not be invoked by a HTTP link. It should be automatic. I think we can do this by IIS worker processes. Also...

Does FastCGI support PHP 5.3.2 centOS?

I just upgrade the PHP version in my VPS to 5.3.2 I used FastCGI and worker MPM in php 5.1.2 or 5.2.1 I forgot, it worked fine, and it was so fast, I like it. After I upgrade the PHP version, it gives me Internal Server Error 500 on all .php pages. What is wrong? does FCGI support php 5.3.2? If yes, there should be some differences in...

Adding servers to a service

I'm building an architecture in that web servers dispatches jobs to background worker nodes in a random way so the load is balanced. How could my web servers know that I've added a worker node? Thanks! ...