先确认你的内存释放函数确实被调用了,加断点看看,或者直接加一句afxmessagebox()之类.....确认内存被释放了
解决方案 »
- MFC的文件操作
- vc6.0中如何添加带参数的成员函数
- 紧急求助,VC编辑时的智能提示框怎么不出来了?在线等
- 如何让文本自动断行?
- 请教:一个vc的编译问题!
- 关于const int &a和....
- 用C++AndAPI写对话框程序
- 初来刚到
- 多文档应用程序,菜单获取焦点弹出子菜单,菜单失去焦点,子菜单不能自动消失
- 100分求救:谁知道哪里能下载或购买windows ce操作系统,十万火急,一定给分。我的E-mail:[email protected],谢谢!
- 求《MFC windows程序设计(第二版)》源代码
- CreatePointFont(..)中的point是什么单位?是像素点吗?有人说是磅,我觉得很荒谬,有人知道吗?
请多多指教~~
[email protected]
MSDN上,waveOutUnprepareHeader
The waveOutUnprepareHeader function cleans up the preparation performed by the waveOutPrepareHeader function. This function must be called after the device driver is finished with a data block. You must call this function before freeing the buffer.注意最后一句:先调用这个函数,再释放缓冲区。就是说,你把
delete []hdr->lpData;
hdr->lpData = NULL;
放到这个函数调用后面试试看。