Hi all I need your help with understanding this issue.
Chapter 7, class Newsletter (BLL) ,
in function SendNewsletter :
Code:
Lock.AcquireWriterLock(Timeout.Infinite);
Newsletter.TotalMails = -1;
Newsletter.SentMails = 0;
Newsletter.PercentageCompleted = 0.0;
Newsletter.IsSending = true;
Lock.ReleaseWriterLock();
Why there is a lock? this code is not run by the new thread.
thanks