91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 390KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2021-06-08
  • 語言: C#
  • 標簽: C#??錄音??源碼??控件??

資源簡介

一個很不錯的C#錄音控件源碼,如果覺得超值請好評。謝謝! 以下文字是幫您提供提示出錯的解決方案 在用VS2005中編寫一個非常簡單的播放器程序時編譯是OK的。當我Debug運行的時候遇到了問題,現(xiàn)象如下: LoaderLock was detected Message: DLL“C:WINDOWSassemblyGACMicrosoft.DirectX1.0.2902.0__31bf3856ad364e35Microsoft.DirectX.dll”正試圖在 OS 加載程序鎖內(nèi)執(zhí)行托管代碼。不要嘗試在 DllMain 或映像初始化函數(shù)內(nèi)運行托管代碼,這樣做會導(dǎo)致應(yīng)用程序掛起。 出錯代碼位置如下: //打開一個新的Video文件 myVideo = new Video(openFileDialog1.FileName); 去網(wǎng)上查了一下資料:.NET2.0中增加了42種非常強大的調(diào)試助手(MDA,Loaderlock是其中之一。Loaderlock檢測在一個擁有操作系統(tǒng)loader lock的線程上(如上例的video的運行線程)運行托管代碼的情況。這樣做有可能會引起死鎖,并且有可能在操作系統(tǒng)加載器初始化DLL前被使用。雖然這樣做很有必要,但在進行開發(fā)調(diào)試的時候,實在太麻煩。解決方案如下: 1.改注冊表 在HKEY_LOCAL_MACHINESOFTWAREMicrosoft.NETFramework下面增加一個String,值為"0" 不過這樣做,在該計算機上所有基于.NET2.0開發(fā)都得不到MDA的好處。 2.為項目增加一個配置文件. 3.直接修改項目設(shè)置 最簡單的方法,在"Debug"菜單下----"Exceptions"----"Managed Debugging Assistants"中勾掉"LoaderLock") 再Debug,OK,一切搞定

資源截圖

代碼片段和文件信息

using?System;
using?System.Collections.Generic;
using?System.Text;
using?System.Collections;
using?System.ComponentModel;
using?System.Runtime.InteropServices;


namespace?record
{
????class?playwav
????{
????????public?static?void?Play(string?strFileName)
????????{
????????????//調(diào)用PlaySound方法播放音樂??
????????????Helpers.PlaySound(strFileName?IntPtr.Zero?Helpers.PlaySoundFlags.SND_ASYNC);
????????}
????}
????///????
????///??用于播放音樂??
????///??
????
????internal?class?Helpers
????{
????????[Flags]
????????public?enum?PlaySoundFlags?:?int
????????{
????????????SND_SYNC?=?0x0000????/*??play??synchronously??(default)??*/??//同步??
????????????SND_ASYNC?=?0x0001????/*??play??asynchronously??*/??//異步??
????????????SND_NODEFAULT?=?0x0002????/*??silence??(!default)??if??sound??not??found??*/
????????????SND_MEMORY?=?0x0004????/*??pszSound??points??to??a??memory??file??*/
????????????SND_LOOP?=?0x0008????/*??loop??the??sound??until??next??sndPlaySound??*/
????????????SND_NOSTOP?=?0x0010????/*??don‘t??stop??any??currently??playing??sound??*/
????????????SND_NOWAIT?=?0x00002000??/*??don‘t??wait??if??the??driver??is??busy??*/
????????????SND_ALIAS?=?0x00010000??/*??name??is??a??registry??alias??*/
????????????SND_ALIAS_ID?=?0x00110000??/*??alias??is??a??predefined??ID??*/
????????????SND_FILENAME?=?0x00020000??/*??name??is??file??name??*/
????????????SND_RESOURCE?=?0x00040004????/*??name??is??resource??name??or??atom??*/
????????}

????????[DllImport(“winmm.dll“)]
????????public?static?extern?bool?PlaySound(string?szSound?IntPtr?hMod?PlaySoundFlags?flags);
????}

}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件?????????40??2008-04-10?13:07??值得研究的WAV錄音程序\record\bangzhu.txt

?????文件????????214??2008-03-17?10:39??值得研究的WAV錄音程序\record\mda.reg

?????文件????????908??2012-05-06?16:31??值得研究的WAV錄音程序\record\record\record.sln

????..A..H.?????28672??2013-12-17?00:18??值得研究的WAV錄音程序\record\record\record.suo

?????文件???????5162??2012-05-06?16:31??值得研究的WAV錄音程序\record\record\UpgradeLog.xml

?????文件???????3348??2012-05-06?16:31??值得研究的WAV錄音程序\record\record\_UpgradeReport_Files\UpgradeReport.css

?????文件?????????69??2012-05-06?16:31??值得研究的WAV錄音程序\record\record\_UpgradeReport_Files\UpgradeReport_Minus.gif

?????文件?????????71??2012-05-06?16:31??值得研究的WAV錄音程序\record\record\_UpgradeReport_Files\UpgradeReport_Plus.gif

?????文件??????12505??2008-01-11?01:25??值得研究的WAV錄音程序\record\record\_UpgradeReport_Files\UpgradeReport.xslt

????..A.SH.??????4096??2012-05-06?16:44??值得研究的WAV錄音程序\record\record\_UpgradeReport_Files\Thumbs.db

?????文件????????907??2008-03-12?09:01??值得研究的WAV錄音程序\record\record\Backup\record.sln

????..A..H.?????25088??2010-05-29?11:58??值得研究的WAV錄音程序\record\record\Backup\record.suo

?????文件???????4324??2010-05-22?15:31??值得研究的WAV錄音程序\record\record\Backup\record\record.csproj

?????文件????????168??2008-03-12?09:17??值得研究的WAV錄音程序\record\record\Backup\record\record.csproj.user

?????文件???????1692??2008-03-14?09:42??值得研究的WAV錄音程序\record\record\Backup\record\playwav.cs

?????文件???????4267??2010-05-29?11:50??值得研究的WAV錄音程序\record\record\Backup\record\SmSound.cs

?????文件??????13509??2008-04-08?07:44??值得研究的WAV錄音程序\record\record\Backup\record\SoundRecord.cs

?????文件???????3414??2008-03-17?11:20??值得研究的WAV錄音程序\record\record\Backup\record\UserControl1.cs

?????文件???????4361??2008-03-17?10:34??值得研究的WAV錄音程序\record\record\Backup\record\UserControl1.Designer.cs

?????文件???????1635??2008-03-12?09:17??值得研究的WAV錄音程序\record\record\Backup\record\wav.cs

?????文件???????2225??2008-03-12?09:17??值得研究的WAV錄音程序\record\record\Backup\record\wavfileplayer.cs

?????文件???????5987??2008-03-17?10:34??值得研究的WAV錄音程序\record\record\Backup\record\UserControl1.resx

?????文件????????907??2008-03-12?09:02??值得研究的WAV錄音程序\record\record\Backup\record\Resources\rec.jpg

?????文件????????920??2008-03-12?09:02??值得研究的WAV錄音程序\record\record\Backup\record\Resources\stop.jpg

?????文件????????879??2008-03-12?09:02??值得研究的WAV錄音程序\record\record\Backup\record\Resources\play.jpg

?????文件??????22771??2008-03-12?12:05??值得研究的WAV錄音程序\record\record\Backup\record\Resources\聲音對比_1.png

?????文件???????3840??2008-03-12?12:05??值得研究的WAV錄音程序\record\record\Backup\record\Properties\Resources.Designer.cs

?????文件???????1329??2008-03-12?09:01??值得研究的WAV錄音程序\record\record\Backup\record\Properties\AssemblyInfo.cs

?????文件???????6927??2008-03-12?12:05??值得研究的WAV錄音程序\record\record\Backup\record\Properties\Resources.resx

?????文件???????1692??2008-03-14?09:42??值得研究的WAV錄音程序\record\record\record\playwav.cs

............此處省略57個文件信息

評論

共有 條評論