일부 포인터를 저장하기 위해 ptr_vector를 사용하려고하는데, 주된 방법으로 오류가 발생합니다.ptr_vector가 제대로 해제되지 않았습니다.
Critical error detected c0000374
Windows has triggered a breakpoint in Path_Tree.exe.
This may be due to a corruption of the heap, which indicates a bug in Path_Tree.exe or any of the DLLs it has loaded.
This may also be due to the user pressing F12 while Path_Tree.exe has focus.
The output window may have more diagnostic information.
The program '[7344] Path_Tree.exe: Native' has exited with code 0 (0x0).
내가 잘못 뭐하는 거지 :
int main(void)
{
boost::ptr_vector<string> temp;
string s1 = "hi";
string s2 = "hello";
temp.push_back(&s1);
temp.push_back(&s2);
return 0;
}
이것은 내가 무엇입니까 오류 메시지가 : 여기 내 코드? 감사합니다.
자세한 설명 주셔서 감사합니다! – Qman