void MyFunc(void) { char *buf; buf=new char[10]; ... delete buf; buf=new char[5]; ... delete buf; /// Вот здесь выходит Access Violation ??? }