#include class TestClass { public: void Print(const char* szText); }; void TestClass::Print(const char* szText) { try { printf(szText); //*(int*)NULL = 0; throw 1; } catch(...) { printf("Catch\n"); } } //void (TestClass::*pFunc)(const char*) = NULL; int main() { TestClass tc; void (TestClass::*pFunc[])(const char*) = {&TestClass::Print, &TestClass::Print, &TestClass::Print, NULL, NULL, NULL, NULL, NULL, NULL, NULL }; tc.Print("Hello world!!!\n"); }