Skip to content

静态变量析构崩溃 #182

@blackStar1314

Description

@blackStar1314

现象:
image
堆栈信息:
image

原因:
该静态变量析构顺序在GdiplusShutdown(gdiplusToken)之后,导致Gdiplus::FontFamily()析构异常。

问题源码:

std::map<std::string, sptr<Font_win32>> Font_win32::_win32Faces;

可行的一种解决思路:
PlatformFactory_gdi 析构中管理这个对象的析构,保证在GdiplusShutdown(gdiplusToken)之前析构Gdiplus::FontFamily()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions