Skip to content

[desktop][windows] something wrong with windows desktop application destructor when it refers two or more plugins #93234

@yinquanyy

Description

@yinquanyy

Windows desktop applications refer to two or more plugins. When the application is closed, only one plugin C++ destructor is called

the first plugin's destructor

MyjdcPlugin::~MyjdcPlugin() {
  std::cout << "MyjdcPlugin::~MyjdcPlugin()" << std::endl;
}

the second plugin's destructor

GojdcPlugin::~GojdcPlugin() {
  std::cout << "GojdcPlugin::~GojdcPlugin()" << std::endl;
}

when the app closed, only output:

MyjdcPlugin::~MyjdcPlugin()

flutter --version

Flutter 2.5.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 18116933e7 (3 weeks ago) • 2021-10-15 10:46:35 -0700
Engine • revision d3ea636dc5
Tools • Dart 2.14.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: desktopRunning on desktopplatform-windowsBuilding on or for Windows specificallyr: fixedIssue is closed as already fixed in a newer version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions