blah blah blah is here! blah blah » Close

0
votes
0 answers

How to keep object member variables private to a thread in a multi threaded environment

I have a multi threaded program that opens a few threads to query an external CRM and save the results in an in-memory IDictionary in order to speed up the system. I'm a little confused about multi threading and critical sections. I want ...

1
votes
1 answers

Trying to perform some Threading with objects, help?

I have an application that manages user details. Each user is an object and need to perform the same code but needs to be on different threads. The problem I have is that the routine that spawns the threads seems to be unpredictable. E ...

1
votes
1 answers

Question In Using System.Threading.Timer

Dear All, I am new in c sharp. My application needs a timer, which interval is 200ms to trigger a datatransmission through the serial port. I used forms.timer and timers.timer, but it says that system.threading.timer is better. For fo ...

0
votes
2 answers

Progress bar not updating - Background worker

Hi, i have two classes - the form and a class for the usercontrol. The progress bar sits in the form and handles a button click - the userconrtol contains the logic. But for some reason, the progress bar within the form is not being upd ...

0
votes
1 answers

C# thread parameters

I’ve posted this question on a couple forums. Any threading guru among us know the answer? So I have a method that gets a Dictionary of List<myObj>, then cycles through the keys of the dictionary and passes each List<myObj> ...

0
votes
2 answers

is WPF incapable of real threading?

Petzold's book Applications=Code+Markup says that WPF programs are STAThread, although in Visual Studio 2008 WPF, I'm not sure where the Main resides so I have not verified this. Does that mean that when I create threads in WPF program ...

1
votes
3 answers

Help with threading

Hi guys, I need some help with running functions in seperate threads. My goal is to open or close the disc drive by pressing a button in a form, without the form freezing until it has opened or closed. [code] using System; using Syst ...

1
votes
1 answers

Can I "kind of" insert threading?

MickW
151

Oops. Just down to the final hurdle on my program to control two devices. I need the abort button to work which as far as I can tell will only work if I use threading? My program is fairly simple. Text boxes collect relevant data, Sta ...

0
votes
1 answers

Threading

Hello guys, I have been trying to understand threads for a while and I am able to understand theory part of it but when I am come across any program which actually is using threads then I am not able to synchronize. I am post ...

0
votes
1 answers

Windows Service Issue

I've been tinkering with this windows service for the last few days, and I haven't gotten anywhere. I got the service created, with the installer, and successfully installed it on the server. It starts and does nothing. I added a stre ...

Feedback