Reputation: 173
i want to ask, how to catch COM asynchroneous error with c#? Is it possible at all?
My C# program creates DirectShow graph and that graph uses COM dll (ffmpeg.dll). Graph has its own thread, i want to catch error when that thread fails. All I get now is error message that my app failed in module ffmpeg.dll.
I need to catch that error and restart the application.
Any ideas how to do that?
Thank you
Upvotes: 1
Views: 336
Reputation: 23266
Try
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(OnUnhandledException);
Upvotes: 1