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