Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug this C# crash?

My C# application crashes with this window. It's a DirectX application that uses SharpDX.

I don't even know where to start to debug this? Any tips?

enter image description here

when i enable debugging of native code, the crash looks like this:

enter image description here

and the stack is:

ntdll.dll!77d1f8b1()    
[Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll] 
ntdll.dll!77d1f8b1()    
KernelBase.dll!7658149d()   
kernel32.dll!75c51194()     
kernel32.dll!75c51194()     
ntdll.dll!77d5b459()    
ntdll.dll!77d5b42b()    
ntdll.dll!77d5b3ce()    
ntdll.dll!77d10133()    
XAudio2_7.dll!61fb6b43()    
XAudio2_7.dll!61fa7fa2()    
XAudio2_7.dll!61fa79e9()    
XAudio2_7.dll!61fa8bb8()    
XAudio2_7.dll!61fa9492()    
[External Code] 
SharpDX.XAudio2.dll!SharpDX.XAudio2.Voice.DestroyVoice() Line 916 + 0x34 bytes  C#
like image 357
clamp Avatar asked Nov 13 '22 00:11

clamp


1 Answers

You are using a wrong version of the SharpDX.XAudio2.dll. This means that you app, for example, is x86 and it's trying to use a x64 version. You must load the proper version of the dll.

like image 117
Stathis Andronikos Avatar answered Nov 14 '22 22:11

Stathis Andronikos