Click here to Skip to main content
15,890,609 members
Home / Discussions / C#
   

C#

 
Questionreturn code from console application Pin
Petes197312-Jul-06 9:45
Petes197312-Jul-06 9:45 
AnswerRe: return code from console application Pin
led mike12-Jul-06 9:56
led mike12-Jul-06 9:56 
GeneralRe: return code from console application Pin
Petes197312-Jul-06 10:02
Petes197312-Jul-06 10:02 
GeneralRe: return code from console application Pin
led mike12-Jul-06 10:17
led mike12-Jul-06 10:17 
GeneralRe: return code from console application Pin
Petes197312-Jul-06 10:30
Petes197312-Jul-06 10:30 
QuestionDisplaying Calculation results. [modified] Pin
Skanless12-Jul-06 9:42
Skanless12-Jul-06 9:42 
AnswerRe: Displaying Calculation results. Pin
Guffa12-Jul-06 12:32
Guffa12-Jul-06 12:32 
QuestionDifference between Thread.Start() and Delegate.BeginInvoke() Pin
zaboboa12-Jul-06 9:40
zaboboa12-Jul-06 9:40 
Hello,

If I have a method of type

public void myMethod()
{

}

And I create a delegate void NewDelegate(void)

What is the actual difference between the following calls and how they are handled by .NET and the OS

NewDelegate del = NewDelegate(myMethod);
del.BeginInvoke(null, null);

and

Thread t = new Thread(new ThreadStart(myMethod));
t.Start();

I know the delegate will use a thread from the thread pool, but will the thread t as well? What is the actual effect of one versus the other.
AnswerRe: Difference between Thread.Start() and Delegate.BeginInvoke() Pin
Josh Smith12-Jul-06 9:55
Josh Smith12-Jul-06 9:55 
GeneralRe: Difference between Thread.Start() and Delegate.BeginInvoke() [modified] Pin
zaboboa12-Jul-06 10:00
zaboboa12-Jul-06 10:00 
GeneralRe: Difference between Thread.Start() and Delegate.BeginInvoke() Pin
Josh Smith12-Jul-06 10:12
Josh Smith12-Jul-06 10:12 
GeneralRe: Difference between Thread.Start() and Delegate.BeginInvoke() Pin
Alexander Wiseman12-Jul-06 13:12
Alexander Wiseman12-Jul-06 13:12 
AnswerRe: Difference between Thread.Start() and Delegate.BeginInvoke() Pin
Alexander Wiseman12-Jul-06 12:19
Alexander Wiseman12-Jul-06 12:19 
GeneralRe: Difference between Thread.Start() and Delegate.BeginInvoke() Pin
zaboboa13-Jul-06 1:51
zaboboa13-Jul-06 1:51 
QuestionInheritance... Pin
Besinci12-Jul-06 9:31
Besinci12-Jul-06 9:31 
AnswerRe: Inheritance... Pin
BoneSoft12-Jul-06 9:36
BoneSoft12-Jul-06 9:36 
QuestionGraphics class Pin
BoneSoft12-Jul-06 9:30
BoneSoft12-Jul-06 9:30 
AnswerRe: Graphics class Pin
Christian Graus12-Jul-06 9:37
protectorChristian Graus12-Jul-06 9:37 
GeneralRe: Graphics class Pin
BoneSoft12-Jul-06 9:48
BoneSoft12-Jul-06 9:48 
GeneralRe: Graphics class Pin
Josh Smith12-Jul-06 9:50
Josh Smith12-Jul-06 9:50 
GeneralRe: Graphics class Pin
BoneSoft12-Jul-06 9:51
BoneSoft12-Jul-06 9:51 
GeneralRe: Graphics class Pin
alexey N12-Jul-06 21:13
alexey N12-Jul-06 21:13 
QuestionBeep Pin
haytham_mohammad12-Jul-06 8:40
haytham_mohammad12-Jul-06 8:40 
AnswerRe: Beep Pin
Josh Smith12-Jul-06 8:48
Josh Smith12-Jul-06 8:48 
AnswerRe: Beep Pin
Steve Maier12-Jul-06 8:49
professionalSteve Maier12-Jul-06 8:49 

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.