blah blah blah is here! blah blah » Close

0
votes
4 answers

I cannot believe .NET really requires me to do this!

According to the Framework, if it's not static it's not guaranteed to be thread-safe. I cannot believe I have to write the code to make countless Framework methods thread-safe! Why doesn't Microsoft wrap locks around everything so that I ...

0
votes
0 answers

is Connector/NET for MySQL thread-safe?

The Connector/NET documentation says the usual Microsoft line about public static members being thread-safe but instance members not being guaranteed as safe. Unfortunately this means nothing because the metadata in Visual Studio seems to ...

1
votes
3 answers

static are not instantiated but what is the implication for threads?

If static classes/methods are not instantiated and they have no persistent state information, it's like they're utility functions. Good for math. You don't want threads to share data because that creates bugs. If statics don't have t ...

0
votes
1 answers

Foreground threads in C#

Hi, I have an aspx application in which on Page_Load() event I started a child thread (by default run as foreground). In child thread, after some time consuming operation I want to reset a label. But it's not working in my case.If I put a ...

0
votes
1 answers

changing data in another thread

I'm seeing a little inconsistent behaviour. My Win Form app invokes a "splash" form in a thread while the original thread carries on. At some point the original thread changes a label in the splash form running in the other ...

0
votes
1 answers

Accessing array from multiple threads

Let's say I have two arrays: int[] array1 = new int[2000000]; int[] array2 = new int[2000000]; I stick some values into the arrays and then want to add the contents of array2 to array1 like so: for(int i = 0; i < 2000000; ++i) ...

0
votes
1 answers

The Calling Thread Cannot Access This Object Because A Different Thread Owns It

eeboy
499

I have some code that checks for a device connection... [code] internal sealed class FC_Device { //...... Deleted for clarity public delegate void DeviceConnectedHandler (); public event DeviceCo ...

1
votes
4 answers

how to create 2 threads on on diferent procesors

hi guys, I need your help. let's suppose I have Dual-Core CPU and I need know how to create two threads, each in different processor. for example: thread1 runs in 1core thread2 runs in 2core when implementing tread1.start(); thread2 ...

Feedback