I am using the following code but getting error
Object reference not set to an instance of an object” on line 2.
System.Timers.Timer[] timer = new System.Timers.Timer[10];
timer[0].Elapsed += new ElapsedEventHandler(DoJob);
Why?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
you forget to initialize array’s item