Click here to Skip to main content
15,896,207 members
Home / Discussions / C#
   

C#

 
QuestionHow to split work into multiple threads. Pin
kripzz2-Jun-07 19:50
kripzz2-Jun-07 19:50 
AnswerRe: How to split work into multiple threads. Pin
Expert Coming2-Jun-07 20:14
Expert Coming2-Jun-07 20:14 
GeneralRe: How to split work into multiple threads. Pin
kripzz2-Jun-07 20:25
kripzz2-Jun-07 20:25 
GeneralRe: How to split work into multiple threads. Pin
Expert Coming2-Jun-07 20:29
Expert Coming2-Jun-07 20:29 
AnswerRe: How to split work into multiple threads. Pin
Christian Graus2-Jun-07 20:32
protectorChristian Graus2-Jun-07 20:32 
AnswerRe: How to split work into multiple threads. Pin
Luc Pattyn3-Jun-07 2:34
sitebuilderLuc Pattyn3-Jun-07 2:34 
AnswerRe: How to split work into multiple threads. Pin
Robert Rohde3-Jun-07 2:57
Robert Rohde3-Jun-07 2:57 
GeneralRe: How to split work into multiple threads. Pin
kripzz11-Jun-07 16:39
kripzz11-Jun-07 16:39 
Worked great thanks.

One problem though, not sure if im doing this correctly, everytime i try close the program while the threads are running it gets errors. I have a form closing event that invokes the Thread.Abort() method before closing but it doesnt seem to work. I think its the object disposed error.

private void displayPing(int index, string msg)<br />
{<br />
    if (this.listView1.InvokeRequired)<br />
    {<br />
        try<br />
        {<br />
            displayCallBack hscb = new displayCallBack(displayPing);<br />
            this.Invoke(hscb, new object[] { index, msg});<br />
        }<br />
        catch (Exception) { }<br />
    }<br />
    else<br />
    {   <br />
        try<br />
        {<br />
            this.listView1.Items[index].SubItems[5].Text = msg;<br />
        }<br />
        catch (Exception) { }<br />
    }<br />
}

AnswerRe: How to split work into multiple threads. Pin
Hesham Yassin6-Jun-07 8:32
Hesham Yassin6-Jun-07 8:32 
QuestionHmmm why won't this work? Pin
mfkr2-Jun-07 17:58
mfkr2-Jun-07 17:58 
AnswerRe: Hmmm why won't this work? Pin
Christian Graus2-Jun-07 19:07
protectorChristian Graus2-Jun-07 19:07 
GeneralRe: Hmmm why won't this work? Pin
mfkr2-Jun-07 19:17
mfkr2-Jun-07 19:17 
GeneralRe: Hmmm why won't this work? Pin
Christian Graus2-Jun-07 19:22
protectorChristian Graus2-Jun-07 19:22 
AnswerRe: Hmmm why won't this work? Pin
Robert Surtees2-Jun-07 19:24
Robert Surtees2-Jun-07 19:24 
GeneralRe: Hmmm why won't this work? Pin
mfkr2-Jun-07 19:32
mfkr2-Jun-07 19:32 
GeneralRe: Hmmm why won't this work? Pin
Christian Graus2-Jun-07 20:33
protectorChristian Graus2-Jun-07 20:33 
GeneralRe: Hmmm why won't this work? Pin
Dave Kreskowiak3-Jun-07 5:07
mveDave Kreskowiak3-Jun-07 5:07 
QuestionCasting generic parameters to int Pin
Jack Valmadre2-Jun-07 15:19
Jack Valmadre2-Jun-07 15:19 
AnswerRe: Casting generic parameters to int Pin
mikker_1232-Jun-07 16:29
mikker_1232-Jun-07 16:29 
GeneralRe: Casting generic parameters to int Pin
Jack Valmadre2-Jun-07 17:27
Jack Valmadre2-Jun-07 17:27 
GeneralRe: Casting generic parameters to int Pin
Daniel Grunwald3-Jun-07 2:13
Daniel Grunwald3-Jun-07 2:13 
GeneralRe: Casting generic parameters to int Pin
mikker_1233-Jun-07 4:37
mikker_1233-Jun-07 4:37 
GeneralRe: Casting generic parameters to int Pin
Jack Valmadre3-Jun-07 10:34
Jack Valmadre3-Jun-07 10:34 
QuestionGetting to the encapsulated class within a ServiceHost object? Pin
LongRange.Shooter2-Jun-07 11:36
LongRange.Shooter2-Jun-07 11:36 
QuestionHow can you adjust the maximum window size for Word, IE, Notepad, etc.??? Pin
RedPocket2-Jun-07 8:11
RedPocket2-Jun-07 8:11 

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.