Search found 1 match

by guanhuaming
Fri Sep 07, 2018 3:23 pm
Forum: wxWidgets Development (Chinese)
Topic: 这里窗口关闭后会造成内存泄露吗?
Replies: 0
Views: 1900

这里窗口关闭后会造成内存泄露吗?

我调用下面这个函数,在宿主平台中显示了一个窗口: void DLLFunction(HWND handle) { wxWindow* win = new wxWindow; win->SetHWND((WXHWND)handle); win->Enable(false); MyFrame *simple = new MyFrame(win,wxT("Simple")); simple->Show(true); win->Enable(true); win->SetHWND(0); } 我把这个simple窗口关闭后,会造成内存泄露吗?需要delete win以及delete simple不? ...