作者cdyerty (cdyerty)
看板EE_DSnP
标题[问题] 要的记忆体> blocksize 时
时间Sun May 3 04:54:45 2009
请问一下 :
当 所要的记忆体大於blocksize时
执行 ref code 会有error message :
Requested memory (104) is greater than block size(100). Exception raised...
然後会跳到下一行 继续执行
但自已写的档案 compile 後
执行 ref code 会有error message :
Requested memory (104) is greater than block size(100). Exception raised...
但是之後还会有
terminate called after throwing an instance of 'std::bad_alloc'
what(): St9bad_alloc
Abort
然後就跳出程式了....
请问一下这是什麽情形呀!?
谢谢!!
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.112.243.14
1F:→ goodword:要加上 try.... catch.... 可参考投影片#03 p144~p153 05/03 07:43
2F:推 shingifred:有看有推! 05/07 23:48