Unhandled exception occurs when playing video with MediaElement

Jun 25 2012 4:51 AM
When I'm playing video with MediaElement sometimes unhandled exception occured. It raises in parallel unmanaged Win32 thread and I can't catch it.  So user see standart unhandled exception dialog and my application crashes. I've tried add  DispatcherUnhandledException in my Application, and add my code in AppDomain.CurrentDomain.UnhandledException but this methods doesn't works. My code simply ignores such exceptions. Please help me. Any ideas how can I prevent application crash will be welcome.