0
votes
1answer
18 views

Manage tasks progressions in one user interface

I have an application in witch the user can start tasks, heavy tasks. And I want to manage the progression of these tasks in one user interface Grid (each row is a task, with a progression bar) the ...
1
vote
1answer
11 views

Create reusable processing logic on top of predefined blocks with TPL dataflow?

I love TPL dataflow. Well, an interesting design choice is that, most predefined block use Delegates to allow us to implement processing logic. That looks good in simple scenarios. But let's think ...
0
votes
0answers
37 views

How to use async Task and await

My main goal here is to apply multithreading to each function call, because of how heavy the processing is for each static call. I have a few function that utilize the drawing, graphics, and each one ...
1
vote
1answer
46 views

About Async Tasks and Disposal

In my MainWindow I have a button that can be used to open a Process (native OpenProcess call) and perform some checks on it's memory, but the method called on Click is asynchronous: <Button ...
3
votes
5answers
120 views

Why is this exception not caught?

I'm trying to run the following code: class Program { static void Main(string[] args) { var task = Task.Factory.StartNew(() => { throw new ...
1
vote
1answer
32 views

AggressiveInlining Affects C# async Methods Behaviour

I have a static field of type ConcurrentQueue: static readonly ConcurrentQueue<int> q = new ConcurrentQueue<int>(); and an async method: static async Task<int?> NextNum() { ...
1
vote
1answer
59 views

BlockingCollection vs Subject for use as a consumer

I'm trying to implement a consumer in C#. There are many publishers which could be executing concurrently. I've created three examples, one with Rx and subject, one with BlockingCollection and a third ...
1
vote
0answers
11 views

Using NDepend, how can we removed Cycle Dependencies generated by the compiler due to Tasks (TPL) from the Dependency Matrix?

Using NDepend, how can we removed Cycle Dependencies generated by the compiler due to Tasks (TPL) from the Dependency Matrix. If we cannot remove them, then how can we easily differentiate them from ...
1
vote
2answers
40 views

Default TaskCreationOptions in Task.Run

Why the default value for CreationOptions of a Task created using Task.Run is DenyChildAttach rather than None? Has it anything to do with making work with the new async and await in C# 5.0 simpler ...
2
votes
1answer
43 views

Task frezees UI when starts after showing a dialog

Suppose we want to show a dialog, when getting an exception in the task1 and from that dialog we call a method, which starts a new task2. The problem is that the owner window freezes during task2. ...
0
votes
2answers
40 views

Using Tasks as a way to separate computation of results from committing results

An API pattern we are considering for separating the work of calculating some results from the committing of those results is: interface IResults { } class Results : IResults { } ...
0
votes
0answers
33 views

Options to analyze runnig time of tasks within the Task Parallel Library (C#) [closed]

For most multithreading environments there exists tools to measure the running time and the CPU utilization of the several threads. What options do I have to analyze the running time, cpu utilization ...
-1
votes
0answers
27 views

Count of ThreadInfo and NtProcessInfoHelper+SystemThreadInformation is continuously increasing

I just completed Window Service development. It's using .Net 4.0. Producer / Consumer pattern is implemented using TPL Library. There is always one producer but we can have n number of consumers (i.e. ...
-2
votes
1answer
49 views

Task.Factory.StartNew not starting?

I am trying to go out to a gateway, get data then return on the UI thread . The ContinueWith runs, but the Gateway never does?? ILogonResult result; Task.Factory .StartNew(() => { ...
-1
votes
0answers
35 views

Invoking .NET DLL from Background Thread-Pool Thread [duplicate]

All, I have a fairly odd problem involving the dynamic invocation of a C# .NET WinForms DLL at run-time. This is a generic method that enables users of our system to invoke there own .NET DLLs. The ...

1 2 3 4 5 77
15 30 50 per page