Adding MadExcept to my application shows two memory leaks on closing my application.
It seems that WebGMaps does not free two thread handles on destroy, probably for the OLE objects of the Internet Explorer used by WebGMaps:
allocation number: 4886
program up time: 769 ms
type: Thread Handle
handle: $c70
access rights: $1fffff
threadId: $2a00
processId: $2d40
process exe: D:\dev\Delphi\_test\TMSVCLWebGMapsStyled\Project1.exe
main thread ($1480):
671a9e2a madExcept32.dll madExceptDbg 4045 CreateThreadCallback
004b0dc3 Project1.exe madExcept HookedCreateThread
75937d5f msvcrt.dll _beginthreadex
76be67ea USER32.dll CallWindowProcW
0072cc54 Project1.exe Vcl.OleCtrls 889 TOleControl.DefaultHandler
005cd712 Project1.exe Vcl.Controls 7387 TControl.WndProc
005d2313 Project1.exe Vcl.Controls 10245 TWinControl.WndProc
0072e87d Project1.exe Vcl.OleCtrls 2482 TOleControl.WndProc
004f5d98 Project1.exe System.Classes 17528 StdWndProc
allocation number: 4882
program up time: 769 ms
type: Thread Handle
handle: $c60
access rights: $1fffff
threadId: $2fe8
processId: $2d40
process exe: D:\dev\Delphi\_test\TMSVCLWebGMapsStyled\Project1.exe
main thread ($1480):
671a9e2a madExcept32.dll madExceptDbg 4045 CreateThreadCallback
004b0dc3 Project1.exe madExcept HookedCreateThread
75937d5f msvcrt.dll _beginthreadex
76be67ea USER32.dll CallWindowProcW
0072cc54 Project1.exe Vcl.OleCtrls 889 TOleControl.DefaultHandler
005cd712 Project1.exe Vcl.Controls 7387 TControl.WndProc
005d2313 Project1.exe Vcl.Controls 10245 TWinControl.WndProc
0072e87d Project1.exe Vcl.OleCtrls 2482 TOleControl.WndProc
004f5d98 Project1.exe System.Classes 17528 StdWndProc
program up time: 769 ms
type: Thread Handle
handle: $c70
access rights: $1fffff
threadId: $2a00
processId: $2d40
process exe: D:\dev\Delphi\_test\TMSVCLWebGMapsStyled\Project1.exe
main thread ($1480):
671a9e2a madExcept32.dll madExceptDbg 4045 CreateThreadCallback
004b0dc3 Project1.exe madExcept HookedCreateThread
75937d5f msvcrt.dll _beginthreadex
76be67ea USER32.dll CallWindowProcW
0072cc54 Project1.exe Vcl.OleCtrls 889 TOleControl.DefaultHandler
005cd712 Project1.exe Vcl.Controls 7387 TControl.WndProc
005d2313 Project1.exe Vcl.Controls 10245 TWinControl.WndProc
0072e87d Project1.exe Vcl.OleCtrls 2482 TOleControl.WndProc
004f5d98 Project1.exe System.Classes 17528 StdWndProc
allocation number: 4882
program up time: 769 ms
type: Thread Handle
handle: $c60
access rights: $1fffff
threadId: $2fe8
processId: $2d40
process exe: D:\dev\Delphi\_test\TMSVCLWebGMapsStyled\Project1.exe
main thread ($1480):
671a9e2a madExcept32.dll madExceptDbg 4045 CreateThreadCallback
004b0dc3 Project1.exe madExcept HookedCreateThread
75937d5f msvcrt.dll _beginthreadex
76be67ea USER32.dll CallWindowProcW
0072cc54 Project1.exe Vcl.OleCtrls 889 TOleControl.DefaultHandler
005cd712 Project1.exe Vcl.Controls 7387 TControl.WndProc
005d2313 Project1.exe Vcl.Controls 10245 TWinControl.WndProc
0072e87d Project1.exe Vcl.OleCtrls 2482 TOleControl.WndProc
004f5d98 Project1.exe System.Classes 17528 StdWndProc
I can supply a simple demo project to expose this if needed, but madExcept is needed for that.