Skip to content

疑问:Duilib作为一个dll,在OnFinalMessage 里面delete this,不是会发生不同模块(exe与dll)new 与 delete了,为啥没崩溃 #325

@Xuhuajie-2021

Description

@Xuhuajie-2021

void WindowImplBase::OnFinalMessage( HWND hWnd )
{ __super::OnFinalMessage(hWnd);
ReapObjects(GetRoot());
delete this;
}

    BasicForm* window = new BasicForm();
window->Create(NULL, BasicForm::kClassName.c_str(), WS_OVERLAPPEDWINDOW & ~WS_MAXIMIZEBOX, 0);
window->CenterWindow();
window->ShowWindow();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions