waitHandle class

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lcarota
    New Member
    • Apr 2010
    • 1

    #1

    waitHandle class

    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.
Working...