المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Would it crash the normal functioning of the program?



C# Programming
07-20-2009, 05:20 PM
I have a situation like follows :

void EventHandler(Function arguments)
{
//Set of global variables takes in values from the Function arguments
Example :
Sum = Function Argument1;
Value = Function Argument2;

//Makes a call to Function (say, 'FunctionProcess') with the respective values.
Example :
FunctionProcess(Sum,Value);
}

My query is that what happens if I receive an event and am in the middle of processing the so called "FunctionProcess" and i receive another event. The new event has different values of 'Sum' and 'Value'. What would be the result? Would it crash the normal functioning of the program?

Copleted bsc computer science.and programmer and web programmeing