Windows XP waithHandle class

Joined
Apr 15, 2010
Messages
1
Reaction score
0
I have a problem in managed C++ code.

I have an ArgumentNullException in:
result = System::Threading::WaitHandle::WaitAny(waitHandles);

I have defined waitHandles:
AutoResetEvent ^onNewImageEvent = gcnew AutoResetEvent(false);
AutoResetEvent ^onStopLiveEvent = gcnew AutoResetEvent(false);
array<WaitHandle^> ^waitHandles=gcnew array<WaitHandle^>{onStopLiveEvent,onNewImageEvent};

What coul be the problem? Is it in the definition of waitHandles?

Thanks in advances.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top