Vlc ReleaseMediaPlayer 异常捕获
2015-03-30 13:58
344 查看
In .NET 4.0, the runtime handles certain exceptions raised as Windows Structured Error Handling (SEH) errors as indicators of Corrupted State. These Corrupted State Exceptions (CSE) are not allowed to be caught by your standard managed code. I won't get into
the why's or how's here. Read this article about CSE's in the .NET 4.0 Framework:
http://msdn.microsoft.com/en-us/magazine/dd419661.aspx#id0070035
But there is hope. There are a few ways to get around this:
Recompile as a .NET 3.5 assembly and run it in .NET 4.0.
Add a line to your application's config file under the configuration/runtime element:
Decorate the methods you want to catch these exceptions in with the
See http://msdn.microsoft.com/en-us/magazine/dd419661.aspx#id0070035 for
details.
For more reference: http://connect.microsoft.com/VisualStudio/feedback/details/557105/unable-to-catch-accessviolationexception
the why's or how's here. Read this article about CSE's in the .NET 4.0 Framework:
http://msdn.microsoft.com/en-us/magazine/dd419661.aspx#id0070035
But there is hope. There are a few ways to get around this:
Recompile as a .NET 3.5 assembly and run it in .NET 4.0.
Add a line to your application's config file under the configuration/runtime element:
<legacyCorruptedStateExceptionsPolicy enabled="true|false"/>
Decorate the methods you want to catch these exceptions in with the
HandleProcessCorruptedStateExceptionsattribute.
See http://msdn.microsoft.com/en-us/magazine/dd419661.aspx#id0070035 for
details.
For more reference: http://connect.microsoft.com/VisualStudio/feedback/details/557105/unable-to-catch-accessviolationexception
相关文章推荐
- Windows Media Player控件及url类型异常
- Qt5.2.0 MinGW480 release静态版编译结果、过程及QtCreator配置分享(realfan的编译方法)(configure -h可以显示帮助)(静态编译mysql插件,需要做一些其它工作,机器上要有mysql)(不编译qtwebkit,就不用安装ActivePerl了)(用到 QMediaPlayer的编译办法)
- VLC media player 官方下载
- 在HTML网页中插入VLC视频或者windows media player视频
- libvlc media player in C# (part 1)
- vlc-android 获取MediaPlayerEncounteredError,MediaPlayerBuffering等各种事件的响应
- VLC Media Player的简介
- [Windows] 解决 VLC Media Player 的 Crash Reporting 消息弹窗
- libvlc media player in C# (part 2)
- Uninstall VLC media player with WindowsUninstaller.Org Removal Tips
- vlc-android 获取MediaPlayerEncounteredError,MediaPlayerBuffering等各种事件的响应
- linux 下视频字幕乱码解决方法大全 xine、MPlayer、VLC Media Player
- How to compile VLC media player for Windows
- VLC media player for Fedora
- nVLC-------VLC Media Player的封装库
- Android MediaPlayer播放异常问题汇总
- Uninstall VLC media player with WindowsUninstaller.Org Removal Tips
- DMediaPlayer - 简单的VLC前端播放器
- 用VLC media player com组件检查mms地址是否可以收听详解
- VLC Media Player C++ C# 封装