Click here to Skip to main content
15,900,816 members
Home / Discussions / C#
   

C#

 
GeneralWanted to built my own ACD (Auto Call Distribution) Pin
Muhammad Nauman Yousuf5-Dec-07 7:16
Muhammad Nauman Yousuf5-Dec-07 7:16 
GeneralIO performance in c# Pin
poqeqw5-Dec-07 7:01
poqeqw5-Dec-07 7:01 
GeneralRe: IO performance in c# Pin
Ennis Ray Lynch, Jr.5-Dec-07 10:01
Ennis Ray Lynch, Jr.5-Dec-07 10:01 
QuestionAre there in-depth samples for WorkFlow Foundation DependencyProperty ? Pin
vgrigor15-Dec-07 5:27
vgrigor15-Dec-07 5:27 
Questionwebbrowser component and web application using java Pin
JackD5-Dec-07 5:15
JackD5-Dec-07 5:15 
Generalconnection error Pin
arkiboys5-Dec-07 4:59
arkiboys5-Dec-07 4:59 
GeneralRe: connection error Pin
Dave Kreskowiak5-Dec-07 5:43
mveDave Kreskowiak5-Dec-07 5:43 
QuestionPassing value types async Pin
Andre Azevedo5-Dec-07 4:15
Andre Azevedo5-Dec-07 4:15 
Hi all,

Can anyone tell me what happens (in the stack context) to the value type "x" after Init() method has been terminated:

--------------------

delegate void TestDelegate(ref int x);

class Program
{

static void Main(string[] args)
{
Init();
Console.WriteLine("Waiting");
Console.Read();
}

static void Init()
{
int x = 123;
int y = 123;
int z = 123;

TestDelegate t = new TestDelegate(TestFunc);
t.BeginInvoke(ref x, null, null);
}

static void TestFunc(ref int x)
{
Thread.Sleep(1000);
Console.WriteLine(x);
}

}

--------------------

Thanks,

________________________________________________________________
There are 10 kind of people: those who knows binary and those who doesn't.

GeneralRe: Passing value types async Pin
led mike5-Dec-07 5:17
led mike5-Dec-07 5:17 
GeneralRe: Passing value types async [modified] Pin
Andre Azevedo5-Dec-07 6:37
Andre Azevedo5-Dec-07 6:37 
GeneralMarshalling unmanaged DLL Pin
Dio225-Dec-07 4:05
Dio225-Dec-07 4:05 
GeneralRe: Marshalling unmanaged DLL Pin
Pete O'Hanlon5-Dec-07 4:08
mvePete O'Hanlon5-Dec-07 4:08 
GeneralRe: Marshalling unmanaged DLL Pin
m@u5-Dec-07 4:50
m@u5-Dec-07 4:50 
GeneralRe: Marshalling unmanaged DLL Pin
Dio225-Dec-07 5:42
Dio225-Dec-07 5:42 
GeneralRe: Marshalling unmanaged DLL Pin
Andre Azevedo5-Dec-07 6:44
Andre Azevedo5-Dec-07 6:44 
GeneralRe: Marshalling unmanaged DLL Pin
Dio225-Dec-07 7:24
Dio225-Dec-07 7:24 
GeneralRe: Marshalling unmanaged DLL Pin
Andre Azevedo5-Dec-07 8:50
Andre Azevedo5-Dec-07 8:50 
AnswerRe: Marshalling unmanaged DLL Pin
Luc Pattyn5-Dec-07 8:06
sitebuilderLuc Pattyn5-Dec-07 8:06 
GeneralRe: Marshalling unmanaged DLL Pin
m@u6-Dec-07 4:19
m@u6-Dec-07 4:19 
GeneralGeneral question about MS Certifications Pin
allende5-Dec-07 3:32
allende5-Dec-07 3:32 
GeneralRe: General question about MS Certifications Pin
Sathesh Sakthivel5-Dec-07 3:47
Sathesh Sakthivel5-Dec-07 3:47 
AnswerRe: General question about MS Certifications Pin
MaxRelaxman5-Dec-07 4:58
MaxRelaxman5-Dec-07 4:58 
GeneralRe: General question about MS Certifications Pin
allende5-Dec-07 7:44
allende5-Dec-07 7:44 
QuestionWriting text to images Pin
adi.rusu5-Dec-07 3:20
adi.rusu5-Dec-07 3:20 
GeneralRe: Writing text to images Pin
J4amieC5-Dec-07 3:46
J4amieC5-Dec-07 3:46 

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.