Note that there are some explanatory texts on larger screens.

plurals
  1. POHow could new WaitHandle [] return null? Or does it?
    text
    copied!<p>I am using a <strong>FluorineFx 1.0.0.17</strong> in my project and working with <code>NetConnection</code> to connect to a RTMP host (Flash Media Server). I am creating a RTMP monitoring probe for PRTG.</p> <p>There is always an error <strong>at the end of the main application process</strong> on the line 173 of <code>WorkItemsQueue.cs</code> file (second code line shown here)</p> <pre><code>// Prepare array of wait handle for the WaitHandle.WaitAny() WaitHandle [] waitHandles = new WaitHandle [] { WaitEntry.WaitHandle, cancelEvent }; // Wait for available resource, cancel event, or timeout. int index = WaitHandle.WaitAny(waitHandles, millisecondsTimeout, true); </code></pre> <p>This is what debugger shows me:</p> <p><img src="https://i.stack.imgur.com/mHtoG.png" alt="enter image description here"></p> <p>Call stack:</p> <pre><code>[In a sleep, wait, or join] [External Code] FluorineFx.dll!FluorineFx.Threading.WorkItemsQueue.DequeueWorkItem(int millisecondsTimeout, System.Threading.WaitHandle cancelEvent) Line 173 + 0xd bytes C# FluorineFx.dll!FluorineFx.Threading.ThreadPoolEx.Dequeue() Line 329 + 0x2c bytes C# FluorineFx.dll!FluorineFx.Threading.ThreadPoolEx.ProcessQueuedItems() Line 378 + 0x8 bytes C# [External Code] kernel32.dll!749c3677() [Frames below may be incorrect and/or missing, no symbols loaded for kernel32.dll] ntdll.dll!770e9f42() ntdll.dll!770e9f15() </code></pre> <p>By <em>at the end of the process</em> I mean whole program works as it should, but when at the end of Main method debugger throws this unmanaged-code error (shows only if <em>Enable unmanaged code debugging</em> is enabled).</p> <p><img src="https://i.stack.imgur.com/Ny1CI.png" alt="enter image description here"></p> <p><strong>I have no idea how to debug this, nor how to avoid it. Any help would be appreciated.</strong></p> <p>UPDATE 1:</p> <p><img src="https://i.stack.imgur.com/H81YQ.png" alt="enter image description here"></p> <p>Main threads stopps at:</p> <pre><code> Environment.Exit(0); </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload