Hi,
We are using NAudio DLL version 1.6 in our .net WPF application with VS 2013 to play wave sound. We are getting issue from some of our clients where our .net WPF application is getting crashed randomely with following exception:
<application log>
2017/06/28 13:46:38.506 FATAL [42:] .App - Reached App.HandleUnhandledException. System.InvalidOperationException: Handle is not initialized.
at System.Runtime.InteropServices.GCHandle.FromIntPtr(IntPtr value)
at NAudio.Wave.WaveOut.Callback(IntPtr hWaveOut, WaveMessage uMsg, IntPtr dwInstance, WaveHeader wavhdr, IntPtr dwReserved)
</application log>
At same time, we see below mentioned issue in window error log:
=== Windows Error Reporting (6/28/2017 1:47:14 PM)
Fault bucket 1630219759, type 25
Event Name: APPCRASH
Response: Not available
Cab Id: 0
Problem signature:
P1: UCA.exe
P2: 7.3.0.103
P3: 58b6859c
P4: clr.dll
P5: 4.7.2053.0
P6: 58fa6bb3
P7: c0000005
P8: 00030c12
P9:
P10:
Attached files:
C:\Users\megan\AppData\Local\Temp\WER6D4F.tmp.WERInternalMetadata.xml
C:\Users\megan\AppData\Local\Temp\WER7913.tmp.appcompat.txt
C:\Users\megan\AppData\Local\Temp\WER7EBF.tmp.mdmp
These files may be available here:
C:\Users\megan\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_UCA.exe_71d9d0d9a27670d5b8e566794863ef35f6a_2dbeecea
Analysis symbol:
Rechecking for solution: 0
Report Id: a130b63c-5ba3-11e7-be8b-dc4a3e9c8ee3
Report Status: 9
=== Application Error (6/28/2017 1:46:41 PM)
Faulting application name: UCA.exe, version: 7.3.0.103, time stamp: 0x58b6859c
Faulting module name: clr.dll, version: 4.7.2053.0, time stamp: 0x58fa6bb3
Exception code: 0xc0000005
Fault offset: 0x00030c12
Faulting process id: 0xcac
Faulting application start time: 0x01d2eeda17125ad6
Faulting application path: C:\Program Files (x86)\Mitel\Unified Communicator Advanced 7.3\UCA.exe
Faulting module path: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Report Id: a130b63c-5ba3-11e7-be8b-dc4a3e9c8ee3
=== .NET Runtime (6/28/2017 1:46:40 PM)
Application: UCA.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an internal error in the .NET Runtime at IP 6ECA0C12 (6EC70000) with exit code 80131506.
Please help us in determining the root cause and solution of this issue.
Thanks & Regards,
Arun Jain