I know that wx3.3.1 samples crash on exit if you use MinGW with MSVCRT, see this issue.
Thanks for the reply. I have seen your issue report before, but when I try to search the issue by your user name "Miguel Gimenez", I couldn't find it. Oh, I see your nickname in github is: "wh11204".
So, it crashed on 64bit Windows 7(Am I correct? I guess you are using 64bit Windows 7) with a 32bit compiler: i686-w64-mingw32, which is using MSVCRT library.
For me, I would still try to use a 64bit compiler which is MSVCRT library not UCRT, and I'd try on a 64bit Windows 10 PC first. Does anyone has tried this combination before?