I have a problem in managed C++ code.
I have an ArgumentNullExc eption in:
result = System::Threadi ng::WaitHandle: :WaitAny(waitHa ndles);
I have defined withHandles:
AutoResetEvent ^onNewImageEven t = gcnew AutoResetEvent( false);
AutoResetEvent ^onStopLiveEven t = gcnew AutoResetEvent( false);
array<WaitHandl e^> ^waitHandles=gc new array<WaitHandl e^>{onStopLiveE vent,onNewImage Event};
What is the problem? Is it the definition of waitHandles?
Thanks in advance.
I have an ArgumentNullExc eption in:
result = System::Threadi ng::WaitHandle: :WaitAny(waitHa ndles);
I have defined withHandles:
AutoResetEvent ^onNewImageEven t = gcnew AutoResetEvent( false);
AutoResetEvent ^onStopLiveEven t = gcnew AutoResetEvent( false);
array<WaitHandl e^> ^waitHandles=gc new array<WaitHandl e^>{onStopLiveE vent,onNewImage Event};
What is the problem? Is it the definition of waitHandles?
Thanks in advance.