i have written a Gui-App with pyqt5.
I Use threading.Thread to create a Thread, which does some calculating.The thread gets name, target, args, kwargs and a callback-function which is member of my app class.
The callback works several times, except for the last run.For example, the first 99 calls out of 100 do well, but no. 100 causes the error.After returning from the callback the last time, the interpreter crashes after about a second with an Windows Event, event code 0xc0000005
The callback also has **kwargs as parameters
There is no Traceback from python itsself.
Anyone an idea on what could be the cause or what I do wrong?
Environment:
- Windows 10,
- Python 3.9.0,
- PyQt5 5.15.1