Apologies for poor formatting- writing this on my phone.
I am getting many false memory leaks reported when exiting my MFC (also cli) app.
On investigation, MFC AfxDiagnosticInit function is being called too early, and consequently the memory leak dump is occuring before my CWinApp destructor is being called, resulting in MANY false positive memory leaks
How can I ensure AfxDiagnosticInit is called sooner, so that my static variable destructor (e.g. CMyApp) is called before the leak dump starts?