Open bpaczkowski opened 6 years ago
Is it possible that there are messages being logged while (or after) the text ctrl or its parents are being destroyed? Is it possible that the log method is being called directly from another thread?
It shouldn't, the logging is done from the parent, and I check if the TextCtrl is falsey so it doesn't try to log on a destroyed control. But if in the parent I directly call the AppendText instead of log it never crashes for some reason, I have no idea why.
@bpaczkowski : are you calling LogMessage from another thread? If you are, then don’t. Is this still relevant? I never had a problem with doing this.
Operating system: Windows 10 wxPython version: wxPython 4.0.0b2 Stock or custom build: Stock Python version: 3.6.2 Stock or custom build: Stock
Description of the problem:
I have a very simple logger based on the TextCtrl control. My problem is that very often when closing the application the python process crashes with the following exit code: 0xC0000409. The exception seems to originate in the ucrtbase.dll library, according to VS2017 debugger.
The bare minimum control that causes the crash: