Hello,
I’ve got an application written in Python 3.7 using wxPython 4.0.7.post2 running on Windows 7 and 10. About 25% of the time I exit my program the Python interpreter crashes trying to leave MainLoop(). I usually get an error code like (0xC0000005). If I look in the Windows 10 event viewer I can see the program crash and it indicates that the module the fault happened in was wxbase30u_vc140_x64.dll.
My method that handles wx.EVT_CLOSE has:
…
print(‘Calling destroy’)
self.DestroyLater()
print(‘Called Destroy’)
I get both of the messages printed. But no further messages are printed at the point that MainLoop() should exit.
The application is too large to post here (~50k LOC). Is there a way to get more information about the crash? Debug into the DLL’s? Anything that could help me track this down?
Thank you!