一个很不错的C#录音控件源码,帮您提供提示出错的解决方案

上传者: china_ehao | 上传时间: 2019-12-21 19:34:07 | 文件大小: 390KB | 文件类型: rar
一个很不错的C#录音控件源码,如果觉得超值请好评。谢谢! 以下文字是帮您提供提示出错的解决方案 在用VS2005中编写一个非常简单的播放器程序时编译是OK的。当我Debug运行的时候遇到了问题,现象如下: LoaderLock was detected Message: DLL“C:WINDOWSassemblyGACMicrosoft.DirectX1.0.2902.0__31bf3856ad364e35Microsoft.DirectX.dll”正试图在 OS 加载程序锁内执行托管代码。不要尝试在 DllMain 或映像初始化函数内运行托管代码,这样做会导致应用程序挂起。 出错代码位置如下: //打开一个新的Video文件 myVideo = new Video(openFileDialog1.FileName); 去网上查了一下资料:.NET2.0中增加了42种非常强大的调试助手(MDA,Loaderlock是其中之一。Loaderlock检测在一个拥有操作系统loader lock的线程上(如上例的video的运行线程)运行托管代码的情况。这样做有可能会引起死锁,并且有可能在操作系统加载器初始化DLL前被使用。虽然这样做很有必要,但在进行开发调试的时候,实在太麻烦。解决方案如下: 1.改注册表 在HKEY_LOCAL_MACHINESOFTWAREMicrosoft.NETFramework下面增加一个String,值为"0" 不过这样做,在该计算机上所有基于.NET2.0开发都得不到MDA的好处。 2.为项目增加一个配置文件. 3.直接修改项目设置 最简单的方法,在"Debug"菜单下----"Exceptions"----"Managed Debugging Assistants"中勾掉"LoaderLock") 再Debug,OK,一切搞定

文件下载

资源详情

[{"title":"( 67 个子文件 390KB ) 一个很不错的C#录音控件源码,帮您提供提示出错的解决方案","children":[{"title":"值得研究的WAV录音程序","children":[{"title":"record","children":[{"title":"mda.reg <span style='color:#111;'> 214B </span>","children":null,"spread":false},{"title":"bangzhu.txt <span style='color:#111;'> 40B </span>","children":null,"spread":false},{"title":"record","children":[{"title":"UpgradeLog.XML <span style='color:#111;'> 5.04KB </span>","children":null,"spread":false},{"title":"record.suo <span style='color:#111;'> 28.00KB </span>","children":null,"spread":false},{"title":"Backup","children":[{"title":"record.suo <span style='color:#111;'> 24.50KB </span>","children":null,"spread":false},{"title":"record","children":[{"title":"UserControl1.Designer.cs <span style='color:#111;'> 4.26KB </span>","children":null,"spread":false},{"title":"playwav.cs <span style='color:#111;'> 1.65KB </span>","children":null,"spread":false},{"title":"Resources","children":[{"title":"声音对比_1.png <span style='color:#111;'> 22.24KB </span>","children":null,"spread":false},{"title":"stop.jpg <span style='color:#111;'> 920B </span>","children":null,"spread":false},{"title":"play.jpg <span style='color:#111;'> 879B </span>","children":null,"spread":false},{"title":"rec.jpg <span style='color:#111;'> 907B </span>","children":null,"spread":false}],"spread":true},{"title":"UserControl1.cs <span style='color:#111;'> 3.33KB </span>","children":null,"spread":false},{"title":"SmSound.cs <span style='color:#111;'> 4.17KB </span>","children":null,"spread":false},{"title":"wav.cs <span style='color:#111;'> 1.60KB </span>","children":null,"spread":false},{"title":"UserControl1.resx <span style='color:#111;'> 5.85KB </span>","children":null,"spread":false},{"title":"wavfileplayer.cs <span style='color:#111;'> 2.17KB </span>","children":null,"spread":false},{"title":"record.csproj <span style='color:#111;'> 4.22KB </span>","children":null,"spread":false},{"title":"SoundRecord.cs <span style='color:#111;'> 13.19KB </span>","children":null,"spread":false},{"title":"record.csproj.user <span style='color:#111;'> 168B </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false},{"title":"Resources.resx <span style='color:#111;'> 6.76KB </span>","children":null,"spread":false},{"title":"Resources.Designer.cs <span style='color:#111;'> 3.75KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"record.sln <span style='color:#111;'> 907B </span>","children":null,"spread":false}],"spread":true},{"title":"record","children":[{"title":"UserControl1.Designer.cs <span style='color:#111;'> 4.26KB </span>","children":null,"spread":false},{"title":"playwav.cs <span style='color:#111;'> 1.65KB </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"Debug","children":[{"title":"record.record.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"record.Properties.Resources.resources <span style='color:#111;'> 4.49KB </span>","children":null,"spread":false},{"title":"ResolveAssemblyReference.cache <span style='color:#111;'> 17.24KB </span>","children":null,"spread":false},{"title":"TempPE","children":[{"title":"Properties.Resources.Designer.cs.dll <span style='color:#111;'> 4.50KB </span>","children":null,"spread":false}],"spread":false},{"title":"record.csproj.GenerateResource.Cache <span style='color:#111;'> 950B </span>","children":null,"spread":false},{"title":"record.dll <span style='color:#111;'> 20.50KB </span>","children":null,"spread":false},{"title":"record.csproj.FileListAbsolute.txt <span style='color:#111;'> 790B </span>","children":null,"spread":false},{"title":"record.pdb <span style='color:#111;'> 47.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"record.csproj.FileList.txt <span style='color:#111;'> 418B </span>","children":null,"spread":false},{"title":"record.csproj.FileListAbsolute.txt <span style='color:#111;'> 1.75KB </span>","children":null,"spread":false}],"spread":true},{"title":"bin","children":[{"title":"winmm.dll <span style='color:#111;'> 160.00KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"Microsoft.DirectX.xml <span style='color:#111;'> 259.17KB </span>","children":null,"spread":false},{"title":"Microsoft.DirectX.DirectSound.xml <span style='color:#111;'> 339.93KB </span>","children":null,"spread":false},{"title":"Microsoft.DirectX.AudioVideoPlayback.xml <span style='color:#111;'> 33.12KB </span>","children":null,"spread":false},{"title":"Microsoft.DirectX.DirectSound.dll <span style='color:#111;'> 174.00KB </span>","children":null,"spread":false},{"title":"Microsoft.DirectX.dll <span style='color:#111;'> 218.00KB </span>","children":null,"spread":false},{"title":"rec.wav <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"record.dll <span style='color:#111;'> 20.50KB </span>","children":null,"spread":false},{"title":"record.pdb <span style='color:#111;'> 47.50KB </span>","children":null,"spread":false},{"title":"Microsoft.DirectX.AudioVideoPlayback.dll <span style='color:#111;'> 52.00KB </span>","children":null,"spread":false}],"spread":false},{"title":"mchinese","children":[{"title":"rec.wav <span style='color:#111;'> 23.48KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"Resources","children":[{"title":"声音对比_1.png <span style='color:#111;'> 22.24KB </span>","children":null,"spread":false},{"title":"stop.jpg <span style='color:#111;'> 920B </span>","children":null,"spread":false},{"title":"play.jpg <span style='color:#111;'> 879B </span>","children":null,"spread":false},{"title":"rec.jpg <span style='color:#111;'> 907B </span>","children":null,"spread":false}],"spread":true},{"title":"UserControl1.cs <span style='color:#111;'> 3.33KB </span>","children":null,"spread":false},{"title":"SmSound.cs <span style='color:#111;'> 4.17KB </span>","children":null,"spread":false},{"title":"wav.cs <span style='color:#111;'> 1.60KB </span>","children":null,"spread":false},{"title":"UserControl1.resx <span style='color:#111;'> 5.85KB </span>","children":null,"spread":false},{"title":"wavfileplayer.cs <span style='color:#111;'> 2.17KB </span>","children":null,"spread":false},{"title":"record.csproj <span style='color:#111;'> 4.39KB </span>","children":null,"spread":false},{"title":"SoundRecord.cs <span style='color:#111;'> 13.19KB </span>","children":null,"spread":false},{"title":"record.csproj.user <span style='color:#111;'> 168B </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false},{"title":"Resources.resx <span style='color:#111;'> 6.76KB </span>","children":null,"spread":false},{"title":"Resources.Designer.cs <span style='color:#111;'> 3.75KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"record.sln <span style='color:#111;'> 908B </span>","children":null,"spread":false},{"title":"_UpgradeReport_Files","children":[{"title":"UpgradeReport.css <span style='color:#111;'> 3.27KB </span>","children":null,"spread":false},{"title":"UpgradeReport_Plus.gif <span style='color:#111;'> 71B </span>","children":null,"spread":false},{"title":"UpgradeReport.xslt <span style='color:#111;'> 12.21KB </span>","children":null,"spread":false},{"title":"UpgradeReport_Minus.gif <span style='color:#111;'> 69B </span>","children":null,"spread":false},{"title":"Thumbs.db <span style='color:#111;'> 4.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • mtcbhsw :
    我下了一个,还没打开看,先随意给个星级吧
    2021-02-09
  • 求知者ls :
    不是很好,没有用上
    2016-05-24
  • bsx133 :
    这个东西还是很不错的,帮了我的大忙 感谢分享
    2015-07-29
  • zhou1212160 :
    不错,对我的项目开发很有帮助
    2014-04-13

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明