Click here to Skip to main content
15,881,618 members
Home / Discussions / C#
   

C#

 
GeneralRe: Non-XML ini-file supporting arrays, in plain text format? Pin
Eddy Vluggen19-Jun-14 5:13
professionalEddy Vluggen19-Jun-14 5:13 
GeneralRe: Non-XML ini-file supporting arrays, in plain text format? Pin
Dave Kreskowiak19-Jun-14 5:52
mveDave Kreskowiak19-Jun-14 5:52 
GeneralRe: Non-XML ini-file supporting arrays, in plain text format? Pin
arnold_w19-Jun-14 21:41
arnold_w19-Jun-14 21:41 
GeneralRe: Non-XML ini-file supporting arrays, in plain text format? Pin
V.19-Jun-14 21:44
professionalV.19-Jun-14 21:44 
GeneralRe: Non-XML ini-file supporting arrays, in plain text format? Pin
arnold_w19-Jun-14 21:47
arnold_w19-Jun-14 21:47 
GeneralRe: Non-XML ini-file supporting arrays, in plain text format? Pin
V.19-Jun-14 21:48
professionalV.19-Jun-14 21:48 
GeneralRe: Non-XML ini-file supporting arrays, in plain text format? Pin
Dave Kreskowiak20-Jun-14 1:48
mveDave Kreskowiak20-Jun-14 1:48 
Question"One or more exceptions" occurred at Task.Start() Pin
Sharath C V19-Jun-14 3:23
professionalSharath C V19-Jun-14 3:23 
I have a form application with a button and a listbox. When I click the button, I launch about 10 tasks and then do a wait on each of the tasks. When I try to run this from Visual Studio 2013 in Debug mode, I get an exception "One or more errors occurred" at Task.Start() itself, but when I run this outside of the debugger, then it works fine. Is this a Visual Studio issue? Any light on this would be helpful. Please find the code snippet below:

C#
private void SynchronousWait200ms()
{
    Thread.Sleep(200);
    listBox.Items.Add("Wait 200 ms, Thread Id = " + Thread.CurrentThread.ManagedThreadId);
}

private void TaskRunButton_Click1(object sender, EventArgs e)
{
    listBox.Items.Clear();
    try
    {
        List<Task> tsk1 = new List<Task>();

        for (int i = 0; i < 10; i++)
        {
            tsk1.Add(new Task(SynchronousWait200ms));
            tsk1[i].Start();
            tsk1[i].Wait();
        }

        listBox.Items.Add("------------");
    }
    catch (Exception ex)
    {
        string msg = ex.Message;
    }
}

AnswerRe: "One or more exceptions" occurred at Task.Start() Pin
OriginalGriff19-Jun-14 3:55
mveOriginalGriff19-Jun-14 3:55 
SuggestionRe: "One or more exceptions" occurred at Task.Start() Pin
Richard Deeming19-Jun-14 4:07
mveRichard Deeming19-Jun-14 4:07 
GeneralRe: "One or more exceptions" occurred at Task.Start() Pin
OriginalGriff19-Jun-14 4:15
mveOriginalGriff19-Jun-14 4:15 
AnswerRe: "One or more exceptions" occurred at Task.Start() Pin
Sharath C V19-Jun-14 21:18
professionalSharath C V19-Jun-14 21:18 
GeneralRe: "One or more exceptions" occurred at Task.Start() Pin
Sharath C V19-Jun-14 19:10
professionalSharath C V19-Jun-14 19:10 
AnswerRe: "One or more exceptions" occurred at Task.Start() Pin
Richard Deeming19-Jun-14 4:06
mveRichard Deeming19-Jun-14 4:06 
GeneralRe: "One or more exceptions" occurred at Task.Start() Pin
Sharath C V19-Jun-14 20:02
professionalSharath C V19-Jun-14 20:02 
QuestionSendkeys to excel without open workbook - C# Pin
bonjot19-Jun-14 1:26
bonjot19-Jun-14 1:26 
AnswerRe: Sendkeys to excel without open workbook - C# Pin
Pete O'Hanlon19-Jun-14 2:11
mvePete O'Hanlon19-Jun-14 2:11 
GeneralRe: Sendkeys to excel without open workbook - C# Pin
bonjot19-Jun-14 2:27
bonjot19-Jun-14 2:27 
AnswerRe: Sendkeys to excel without open workbook - C# Pin
Dave Kreskowiak19-Jun-14 2:11
mveDave Kreskowiak19-Jun-14 2:11 
GeneralRe: Sendkeys to excel without open workbook - C# Pin
bonjot19-Jun-14 2:29
bonjot19-Jun-14 2:29 
QuestionC# FOR Loop Speed Issue Pin
exfosys18-Jun-14 21:02
exfosys18-Jun-14 21:02 
AnswerRe: C# FOR Loop Speed Issue Pin
Pete O'Hanlon18-Jun-14 21:18
mvePete O'Hanlon18-Jun-14 21:18 
AnswerRe: C# FOR Loop Speed Issue Pin
OriginalGriff18-Jun-14 21:51
mveOriginalGriff18-Jun-14 21:51 
GeneralRe: C# FOR Loop Speed Issue Pin
exfosys18-Jun-14 22:41
exfosys18-Jun-14 22:41 
GeneralRe: C# FOR Loop Speed Issue Pin
OriginalGriff18-Jun-14 23:12
mveOriginalGriff18-Jun-14 23:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.