使用VS2010编译cocos2d-x项目,带有播放音效的项目时,编译出错

abin19851202 2014-02-19 04:58:05
cocos2d-x版本为2.2.1,操作系统是windows 7 64位。每次编译到CocosDenshion::SimpleAudioEngine::sharedEngine()->preloadEffect("sound/enemy1_down.mp3");时就出错退出,并且弹出下面的出错窗口




输出窗口的信息为:

“JackyAirplane.exe”: 已加载“C:\Windows\SysWOW64\MMDevAPI.dll”,Cannot find or open the PDB file
“JackyAirplane.exe”: 已加载“C:\Windows\SysWOW64\wdmaud.drv”,Cannot find or open the PDB file
“JackyAirplane.exe”: 已加载“C:\Windows\SysWOW64\ksuser.dll”,Cannot find or open the PDB file
“JackyAirplane.exe”: 已加载“C:\Windows\SysWOW64\avrt.dll”,Cannot find or open the PDB file
“JackyAirplane.exe”: 已加载“C:\Windows\SysWOW64\AudioSes.dll”,Cannot find or open the PDB file
“JackyAirplane.exe”: 已加载“C:\Windows\SysWOW64\msacm32.drv”,Cannot find or open the PDB file
“JackyAirplane.exe”: 已加载“C:\Windows\SysWOW64\msacm32.dll”,Cannot find or open the PDB file
“JackyAirplane.exe”: 已加载“C:\Windows\SysWOW64\midimap.dll”,Cannot find or open the PDB file
“JackyAirplane.exe”: 已加载“C:\Windows\SysWOW64\mciqtz32.dll”,Cannot find or open the PDB file
“JackyAirplane.exe”: 已加载“C:\Windows\SysWOW64\quartz.dll”,Cannot find or open the PDB file
“JackyAirplane.exe”: 已加载“C:\Windows\SysWOW64\clbcatq.dll”,Cannot find or open the PDB file
“JackyAirplane.exe”: 已加载“C:\Windows\SysWOW64\devenum.dll”,Cannot find or open the PDB file
“JackyAirplane.exe”: 已加载“C:\Windows\SysWOW64\DShowRdpFilter.dll”,Cannot find or open the PDB file
“JackyAirplane.exe”: 已加载“C:\Windows\SysWOW64\winsta.dll”,Cannot find or open the PDB file
“JackyAirplane.exe”: 已加载“C:\Windows\SysWOW64\slc.dll”,Cannot find or open the PDB file
“JackyAirplane.exe”: 已加载“C:\Windows\SysWOW64\msdmo.dll”,Cannot find or open the PDB file
“JackyAirplane.exe”: 已加载“C:\Windows\SysWOW64\qasf.dll”,Cannot find or open the PDB file
“JackyAirplane.exe”: 已加载“C:\Windows\SysWOW64\MP3DMOD.DLL”,Cannot find or open the PDB file
“JackyAirplane.exe”: 已加载“C:\Windows\SysWOW64\mfplat.dll”,Cannot find or open the PDB file
“JackyAirplane.exe”: 已加载“C:\Windows\SysWOW64\l3codeca.acm”,Cannot find or open the PDB file
“JackyAirplane.exe”: 已加载“C:\Windows\SysWOW64\msmpeg2adec.dll”,Cannot find or open the PDB file
“JackyAirplane.exe”: 已加载“C:\Windows\SysWOW64\dsound.dll”,Cannot find or open the PDB file
“JackyAirplane.exe”: 已加载“C:\Windows\SysWOW64\powrprof.dll”,Cannot find or open the PDB file
线程 'Win32 线程' (0x1d0) 已退出,返回值为 0 (0x0)。
线程 'Win32 线程' (0xf0c) 已退出,返回值为 0 (0x0)。
线程 'Win32 线程' (0x1268) 已退出,返回值为 0 (0x0)。
线程 'Win32 线程' (0xb78) 已退出,返回值为 0 (0x0)。
HEAP[JackyAirplane.exe]: Invalid address specified to RtlValidateHeap( 026E0000, 044BF728 )
Windows 已在 JackyAirplane.exe 中触发一个断点。


其原因可能是堆被损坏,这说明 JackyAirplane.exe 中或它所加载的任何 DLL 中有 Bug。


原因也可能是用户在 JackyAirplane.exe 具有焦点时按下了 F12。


输出窗口可能提供了更多诊断信息。


我将有关音效的代码注释后,程序可以调试运行。输出窗口提示的dll文件,在C:\Windows\SysWOW64目录下是存在的。
请问各位有遇到过这种情况吗?
...全文
244 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

8,303

社区成员

发帖
与我相关
我的任务
社区描述
游戏开发相关内容讨论专区
社区管理员
  • 游戏开发
  • 呆呆敲代码的小Y
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧