|
编译成功了,debug时弹出
Unhandled exception at 0x7c812afb in OSG.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x0012f4d8..
下面是debug时的输出信息:
'OSG.exe': Loaded 'D:\My Documents\Visual Studio 2008\Projects\OSG\Debug\OSG.exe', Symbols loaded.
'OSG.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll'
'OSG.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll'
'OSG.exe': Loaded 'E:\OSG-3.0-VC9\bin\osg80-osg.dll', Binary was not built with debug information.
'OSG.exe': Loaded 'E:\OSG-3.0-VC9\bin\ot12-OpenThreads.dll', Binary was not built with debug information.
'OSG.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.4148_x-ww_d495ac4e\msvcr90.dll'
'OSG.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.4148_x-ww_d495ac4e\msvcp90.dll'
'OSG.exe': Loaded 'C:\WINDOWS\system32\opengl32.dll'
'OSG.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll'
'OSG.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll'
'OSG.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll'
'OSG.exe': Loaded 'C:\WINDOWS\system32\secur32.dll'
'OSG.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll'
'OSG.exe': Loaded 'C:\WINDOWS\system32\user32.dll'
'OSG.exe': Loaded 'C:\WINDOWS\system32\glu32.dll'
'OSG.exe': Loaded 'C:\WINDOWS\system32\ddraw.dll'
'OSG.exe': Loaded 'C:\WINDOWS\system32\dciman32.dll'
'OSG.exe': Loaded 'E:\OSG-3.0-VC9\bin\osg80-osgDB.dll', Binary was not built with debug information.
'OSG.exe': Loaded 'E:\OSG-3.0-VC9\bin\osg80-osgUtil.dll', Binary was not built with debug information.
'OSG.exe': Loaded 'E:\OSG-3.0-VC9\bin\zlib1.dll', Binary was not built with debug information.
'OSG.exe': Loaded 'E:\OSG-3.0-VC9\bin\osg80-osgViewer.dll', Binary was not built with debug information.
'OSG.exe': Loaded 'E:\OSG-3.0-VC9\bin\osg80-osgGA.dll', Binary was not built with debug information.
'OSG.exe': Loaded 'E:\OSG-3.0-VC9\bin\osg80-osgText.dll', Binary was not built with debug information.
'OSG.exe': Loaded 'C:\WINDOWS\system32\imm32.dll'
'OSG.exe': Loaded 'C:\WINDOWS\system32\lpk.dll'
'OSG.exe': Loaded 'C:\WINDOWS\system32\usp10.dll'
HEAP[OSG.exe]: Invalid allocation size - CCCCCCD0 (exceeded 7ffdefff)
First-chance exception at 0x7c812afb in OSG.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x0012fb38..
HEAP[OSG.exe]: Invalid allocation size - CCCCCCCD (exceeded 7ffdefff)
First-chance exception at 0x7c812afb in OSG.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x0012f4d8..
First-chance exception at 0x7c812afb in OSG.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000..
Unhandled exception at 0x7c812afb in OSG.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x0012f4d8..
貌似是什么内存分配的问题,我是新手啊,求助。 |
|