关于内存分配的错误!UP有分!
执行语句m_pAacStream = new CAacStream;时出现严重错误,
错误信息如下:
First-chance exception in Client.exe (NTDLL.DLL): 0xC0000005: Access Violation.
First-chance exception in Client.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception.
Warning: Critical memory allocation failed!
ERROR: Critical memory allocation from safety pool failed!
Warning: Critical memory allocation failed!
ERROR: Critical memory allocation from safety pool failed!
Warning: Critical memory allocation failed!
ERROR: Critical memory allocation from safety pool failed!
First-chance exception in Client.exe (NTDLL.DLL): 0xC0000005: Access Violation.
First-chance exception in Client.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception.
First-chance exception in Client.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception.
First-chance exception in Client.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception.
First-chance exception in Client.exe (NTDLL.DLL): 0xC0000005: Access Violation.
First-chance exception in Client.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception.
First-chance exception in Client.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception.
First-chance exception in Client.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception.
First-chance exception in Client.exe (NTDLL.DLL): 0xC0000005: Access Violation.
好象没有new成功,
不用new,改为:CAacStream AacStream;错误依然
谁知道怎么回事?谢谢!!!!