[問題] 要的記憶體> blocksize 時

看板EE_DSnP作者 (cdyerty)時間15年前 (2009/05/03 04:54), 編輯推噓1(101)
留言2則, 2人參與, 最新討論串1/1
請問一下 : 當 所要的記憶體大於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

05/03 07:43, , 1F
要加上 try.... catch.... 可參考投影片#03 p144~p153
05/03 07:43, 1F

05/07 23:48, , 2F
有看有推!
05/07 23:48, 2F
文章代碼(AID): #19_BCMBr (EE_DSnP)