2010-02-03 迷信 new に失敗すると NULL が返る。 CPP http://www.kijineko.co.jp/tech/superstitions/return-null-if-new-failed.htmltry-catch()で捕まえるのが確実っぽいです。