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

مشاهدة النسخة كاملة : Problem with AutoResetEvent Array and WaitHandle.WaitAll()



C# Programming
01-21-2010, 10:40 PM
I am tryng to split a process in some methods stopping the methods with objects ManualResetEvent and AutoResetEvent but I am having problems with the WaitHandle.WaitAll() method with this method I want stop the proccess until everyone event is pointed, but I receive the error message of "Not valid WaitAll for various events in a STA proccess"

Please ho can I solve the problem