📄 post27539005.asp.html
字号:
8/3/2006 9:16:24 AM Re: Unhandled exception with wavein functions</u></b></td></tr><tr><td class="homepagetext" align="left"><pre class="homepagetext">if (0 == (WaveHeader.dwFlags & WHDR_DONE)) { continue; } "lugeon" <lugeon@discussions.microsoft.com> wrote in message news:874B4EE2-3BCC-4E8F-8322-5E27B2AF15AA@microsoft.com...</pre></td></tr><tr><td align="left"><br></td></tr><tr><td class="homepagetext9" align="left" nowrap="nowrap"><b><u>8/3/2006 9:20:10 AM Re: Unhandled exception with wavein functions</u></b></td></tr><tr><td class="homepagetext" align="left"><pre class="homepagetext">Also: event = CreateEvent(0, FALSE, FALSE, 0); Don't use manual-reset event for synchronization, or you may have race conditions. Remove ResetEvent. Manual reset events should only be used for a single notification handling, as in: (ResetEvent, request operation, WaitForSingleObject), not for a sequence of notifications. That will be critical if you convert your loop to multiple buffers. "lugeon" <lugeon@discussions.microsoft.com> wrote in message news:874B4EE2-3BCC-4E8F-8322-5E27B2AF15AA@microsoft.com...</pre></td></tr><tr><td align="left"><br></td></tr><tr><td class="homepagetext9" align="left" nowrap="nowrap"><b><u>8/7/2006 6:05:52 AM Re: Unhandled exception with wavein functions</u></b></td></tr><tr><td class="homepagetext" align="left"><pre class="homepagetext">lugeon wrote: I find that I don't need to Unprepare and re-Prepare the header. If you're not changing buffer allocation or size then I don't think that you need to un/Prepare header. I wonder if with only one header and that unprepared, WaveIn may find it's got no buffers to work with, and hence AVs. I can also imagine that unpreparing all the buffers before calling waveInStop or waveInReset might give it indigestion. Alan Lloyd.</pre></td></tr><tr><td align="left"><br></td></tr><tr><td class="homepagetext9" align="left" nowrap="nowrap"><b><u>8/7/2006 2:06:58 PM Re: Unhandled exception with wavein functions</u></b></td></tr><tr><td class="homepagetext" align="left"><pre class="homepagetext">On 7 Aug 2006 06:05:52 -0700, alanglloyd@aol.com wrote: The exception happens, randomly. It happens whether you use re-prepare or not, there is no solution other than to ignore it. It is a int3 breakpoint exception, this can be turned off in the debugger selectively. -- http://www.chrisnet.net/code.htm http://www.avdevforum.com/AV</pre></td></tr><tr><td align="left"><br></td></tr><tr><td class="homepagetext9" align="left" nowrap="nowrap"><b><u>8/8/2006 9:53:55 AM Re: Unhandled exception with wavein functions</u></b></td></tr><tr><td class="homepagetext" align="left"><pre class="homepagetext">On Tue, 8 Aug 2006 02:32:02 -0700, lugeon wrote: Yes you can ignore the exception provided nothing else is occurring to cause the exception. Check the debugger output for memory exceptions etc. -- http://www.chrisnet.net/code.htm http://www.avdevforum.com/AV</pre></td></tr><tr><td align="left"><br></td></tr></tbody></table> <!-- End of your database generated content-----
<script type="text/javascript" src="/adhandler.ashx?zoneid=1&adchannel=0679176943"></script>
//--> </div> </td> <td valign="top" width="325"><br> <div id="column22" class="boxed"> <h2 class="title">Search</h2> <div id="search22"> <input id="searchRelatedText" value="" style="border-style: solid; border-width: 1px; border-top: 1px solid rgb(75, 124, 159); border-left: 1px solid rgb(75, 124, 159); border-bottom: 1px solid rgb(75, 124, 159); padding: 0px 0px 0pt; color: rgb(4, 180, 95); font-weight: bold; height: 20px; width: 250px; vertical-align: top; background-position: right center; background-repeat: no-repeat; background-color: White;" onkeydown="return searchRelatedClassicMaster(event);" type="textbox"> <a href="javascript:doSearchClassicMaster();"><img src="post27539005.asp_archivos/searchsymbol.png" alt="search" width="20" border="0" height="20"></a></div> </div> <br> <div id="Div2" class="boxed"> <h2 class="title">Navigation</h2> <div class="content"> <p class="NavigationP"><a href="http://www.eggheadcafe.com/articlelist.aspx" class="sidelinkNav">Articles</a></p> <p class="NavigationP"><a href="http://www.eggheadcafe.com/managearticlewarning.aspx" class="sidelinkNav">Submit Article</a></p> <p class="NavigationP"><a href="http://www.eggheadcafe.com/forumtree.aspx" class="sidelinkNav">Message Board</a></p> <p class="NavigationP"><a href="http://www.eggheadcafe.com/vendorproductlist.aspx" class="sidelinkNav">Software Downloads</a></p> <p class="NavigationP"><a href="http://www.eggheadcafe.com/videolist.aspx" class="sidelinkNav">Videos</a></p> <p class="NavigationP"><a href="http://www.eggheadcafe.com/feedbackhome.aspx" class="sidelinkNav">Rant & Rave</a></p> <p class="NavigationP"><a href="http://www.eggheadcafe.com/aboutus.aspx" class="sidelinkNav">About Us</a></p> </div> </div> <br> <div id="Div3" class="boxed"> <h2 class="title">Feeds</h2> <div id="divFeeds" class="content"> <ul class="list1"> <li><a href="http://www.eggheadcafe.com/rss_pheedo.xml" class="rss">Articles</a></li> <li><a href="http://www.eggheadcafe.com/rssforum_pheedo.xml" class="rss">Message Board</a></li> <li><a href="http://twitter.com/eggheadcafe" class="twitter" target="_blank">Twitter</a></li> </ul> </div> </div> <br></td> </tr> </tbody></table> </td></tr></tbody></table> <div id="footer"> <table width="100%" border="0" cellpadding="2" cellspacing="0"><tbody><tr><td colspan="8"> </td></tr> <tr> <td align="left"><a href="http://petesbloggerama.blogspot.com/" class="sidelink" title="Peter Bromberg's UnBlog" target="_self">Pete's Blog</a></td> <td align="left"><a href="http://www.eggheadcafe.com/articles/pbrombergresume.asp" class="sidelink" title="Peter's Online Resume" target="_self">Pete's Resume</a></td> <td align="left"><a href="http://robbemorris.blogspot.com/" class="sidelink" title="Robbe's Blog" target="_self">Robbe's Blog</a></td> <td align="left"><a href="http://www.eggheadcafe.com/robbemorris.htm" class="sidelink" title="Robbe's Resume" target="_self">Robbe's Resume</a></td> <td align="left"><a href="http://www.eggheadcafe.com/asp-net-how-to.aspx" class="sidelink" title="ASP.NET Resources" target="_self">ASP.NET Resources</a></td> <td align="left"><a href="http://www.eggheadcafe.com/aspnet_answers" class="sidelink" title="Archived .NET Comments">Archive #2</a></td> <td align="left"><a href="http://www.eggheadcafe.com/forumarchives" class="sidelink" title="Archived .NET Comments">Archive #3</a></td> <td align="left"></td> </tr> <tr> <td align="left"><a href="http://www.eggheadcafe.com/conversationgroupsummary.aspx" class="sidelink">All Categories</a></td> <td align="left"><a href="http://www.eggheadcafe.com/conversationlist.aspx?groupid=454" class="sidelink" target="_self">.NET</a></td> <td align="left"><a href="http://www.eggheadcafe.com/conversationlist.aspx?groupid=103" class="sidelink" target="_self">BizTalk</a></td> <td align="left"><a href="http://www.eggheadcafe.com/conversationlist.aspx?groupid=602" class="sidelink" target="_self">Exchange</a></td> <td align="left"><a href="http://www.eggheadcafe.com/conversationlist.aspx?groupid=929" class="sidelink" target="_self">IIS</a></td> <td align="left"><a href="http://www.eggheadcafe.com/conversationlist.aspx?groupid=2298" class="sidelink" target="_self">IE</a></td> <td align="left"><a href="http://www.eggheadcafe.com/conversationlist.aspx?groupid=963" class="sidelink" target="_self">ISA Server</a></td> <td align="left"><a href="http://www.eggheadcafe.com/conversationlist.aspx?groupid=1" class="sidelink" target="_self">Misc</a></td> </tr> <tr> <td align="left"><a href="http://www.eggheadcafe.com/conversationlist.aspx?groupid=1375" class="sidelink" target="_self">Networking</a></td> <td align="left"><a href="http://www.eggheadcafe.com/conversationlist.aspx?groupid=2475" class="sidelink" target="_self">SharePoint</a></td> <td align="left"><a href="http://www.eggheadcafe.com/conversationlist.aspx?groupid=1731" class="sidelink" target="_self">SQL Server</a></td> <td align="left"><a href="http://www.eggheadcafe.com/conversationlist.aspx?groupid=1705" class="sidelink" target="_self">Sys Mgmt Server</a></td> <td align="left"><a href="http://www.eggheadcafe.com/conversationlist.aspx?groupid=1996" class="sidelink" target="_self">Win32</a></td> <td align="left"><a href="http://www.eggheadcafe.com/conversationlist.aspx?groupid=1570" class="sidelink" target="_self">Mobile Dev</a></td> <td align="left"><a href="http://www.eggheadcafe.com/conversationlist.aspx?groupid=1291" class="sidelink" target="_self">MSN</a></td> <td align="left"><a href="http://www.eggheadcafe.com/conversationlist.aspx?groupid=2053" class="sidelink" target="_self">WinFX</a></td> </tr> <tr> <td align="left"><a href="http://www.eggheadcafe.com/conversationlist.aspx?groupid=1380" class="sidelink" target="_self">Windows 2003</a></td> <td align="left"><a href="http://www.eggheadcafe.com/conversationlist.aspx?groupid=1389" class="sidelink" target="_self">Windows Media</a></td> <td align="left"><a href="http://www.eggheadcafe.com/conversationlist.aspx?groupid=2168" class="sidelink" target="_self">Windows NT</a></td> <td align="left"><a href="http://www.eggheadcafe.com/conversationlist.aspx?groupid=2412" class="sidelink" target="_self">Windows Vista</a></td> <td align="left"><a href="http://www.eggheadcafe.com/conversationlist.aspx?groupid=1404" class="sidelink" target="_self">Windows XP</a></td> <td align="left"><a href="http://www.xmlpitstop.com/" class="sidelink" target="_blank" title="XmlPitStop.com">XmlPitStop</a></td> <td align="left"><a href="http://www.eggheadcafe.com/forumrecentthreads.aspx" class="sidelink" title=".NET Answers" target="_self">Recent</a></td> <td align="left"><a href="http://www.dotnetslackers.com/" class="sidelink" target="_blank" title="DotNetSlackers.com">DotNetSlackers</a></td> </tr> </tbody></table> <div id="CardHidden_Search" style="overflow: auto; visibility: hidden; background-color: rgb(255, 255, 255); position: relative; height: 5px;"><table width="850" border="0" cellpadding="5" cellspacing="0"> <tbody><tr><td valign="bottom" align="left"> </td><td valign="bottom" align="right"><a href="javascript:ToggleSearch('Search',false,'');"><img src="post27539005.asp_archivos/Close16.png" alt="Close Search" border="0"></a> </td></tr> <tr><td style="background: rgb(255, 255, 255) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" colspan="2" align="center"><div id="googlesearchdiv" style="width: 700px;"></div></td></tr></tbody></table> </div> <table width="100%" border="0" cellpadding="2" cellspacing="0"><tbody><tr><td class="linkColoredText" align="right"> <a href="http://www.eggheadcafe.com/default.aspx">Home</a> | <a href="http://www.eggheadcafe.com/aboutus.aspx">Advertise</a> | <a href="http://www.eggheadcafe.com/contactus.aspx">Contact Us</a> | <a href="http://www.eggheadcafe.com/privacy.aspx">Privacy Policy</a> | Copyright (c) 2000 - 2008. All rights reserved.</td></tr> </tbody></table> </div> </form> <script type="text/javascript"> SetAdChannels(); _uacct = "UA-142061-1"; var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); SetSearchBox('searchRelatedText'); OnEggHeadCafeSearchLoad(); </script><script src="post27539005.asp_archivos/ga.js" type="text/javascript"></script> <script type="text/javascript" language="JavaScript"> var pageTracker = _gat._getTracker(_uacct); pageTracker._trackPageview(); </script> <script language="JavaScript" type="text/javascript" src="post27539005.asp_archivos/show_ads.js"></script><script src="post27539005.asp_archivos/test_domain.js"></script><script>window.google_render_ad();</script><script language="JavaScript1.1" src="post27539005.asp_archivos/ads"></script> </body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -