I only have one single call to the init function in the code, and I still get this:Code:void Test::init() { static int times_called = 0; ++times_called; // This should never happen! assert(times_called > 1); }
Can't you use static variables like this inside class member functions?Code:Assertion failed: (times_called > 1), function init, file ... Program received signal: “SIGABRT”. mi_cmd_stack_list_frames: Not enough frames in stack. mi_cmd_stack_list_frames: Not enough frames in stack.
EDIT: Even without the assert I still get the "not enough frames" error.



LinkBack URL
About LinkBacks



