我有一個程序出現故障: terminate called after throwing an instance of 'std::bad_alloc'
what(): St9bad_alloc
我想這件事情做malloc/free,但我不知道是哪一個。 我可以在gdb中設置哪個斷點,以便在錯誤上斷開以便我可以查看堆棧跟蹤? 該程序是C和C++的組合,用gcc 3.4.2編譯。
我有這樣的代碼.. CEngineLayer::CEngineLayer(void)
{
// Incoming creation of layers. Wrapping all of this in a try/catch block is
// not helpful if logging of errors will happen.
logger = new